linuxserver / docker-bookstack

A Docker container for the BookStack documentation wiki
GNU General Public License v3.0
725 stars 105 forks source link

DB password #176

Closed p6002 closed 1 year ago

p6002 commented 1 year ago

Is there an existing issue for this?

Current Behavior

Docker compose file works only with <yourdbpass> instead of normal password here:

Can you please provide random password string as template for me?

Expected Behavior

No response

Steps To Reproduce

Trying to use bookstack via docker compose.

Environment

- OS: Ubuntu Server 22
- How docker service was installed: normal way

CPU architecture

arm64

Docker creation

docker compose up

Container logs

---
version: "2"
services:
  bookstack:
    image: lscr.io/linuxserver/bookstack
    container_name: bookstack
    environment:
      - PUID=1000
      - PGID=1000
      - APP_URL=http://192.168.1.100:6875
      - DB_HOST=bookstack_db
      - DB_PORT=3306
      - DB_USER=bookstack
      - DB_PASS=<yourdbpass>
      - DB_DATABASE=bookstackapp
    volumes:
      - ./bookstack_app_data:/config
    ports:
      - 6875:80
    restart: unless-stopped
    depends_on:
      - bookstack_db

  bookstack_db:
    image: lscr.io/linuxserver/mariadb
    container_name: bookstack_db
    environment:
      - PUID=1000
      - PGID=1000
      - MYSQL_ROOT_PASSWORD=<yourdbpass>
      - TZ=Europe/Amsterdam
      - MYSQL_DATABASE=bookstackapp
      - MYSQL_USER=bookstack
      - MYSQL_PASSWORD=<yourdbpass>
    volumes:
      - ./bookstack_db_data:/config
    restart: unless-stopped
github-actions[bot] commented 1 year ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

Gamechiefx commented 1 year ago

Thank you for this..... Fresh install of Bookstack docker and it would appear that <yourdbpass> is the right password. The problem is that the password I set was defined before docker-compose run. Something is messed up here big time with the compose functions which set MySQL passwords on first run.