-
-
Notifications
You must be signed in to change notification settings - Fork 125
Closed as not planned
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
the current docker-compose.yaml example under bookstack_db entries for MYSQL_USER, MYSQL_PASS etc and the bookstack container is asking for DB_USER, DB_PASS etc
This causes errors when composing like this "error: missing DB_USERNAME environment variable" and "error: missing DB_PASSWORD environment variable"
Expected Behavior
the compose file should work
Steps To Reproduce
modify the example docker-compose.yaml and run it
you will get errors and it will not start.
docker logs for bookstack will show "error: missing DB_PASSWORD environment variable" etc
Environment
- OS: Ubuntu
- How docker service was installed: lscr.io/linuxserver/bookstack and also solidnerd/bookstack
CPU architecture
x86-64
Docker creation
#this is my working compose file
services:
bookstack_db:
image: mysql:8.3
container_name: bookstack_db
environment:
- PUID=1000
- PGID=1000
- DB_DATABASE=bookstackapp
- DB_USERNAME=bookstack
- DB_PASSWORD=secret
- /etc/localtime:/etc/localtime:ro
volumes:
- ./bookstack/db:/var/lib/mysql
restart: unless-stopped
networks:
- bookstack-network
bookstack:
image: solidnerd/bookstack:latest
container_name: bookstack
depends_on:
- bookstack_db
environment:
- PUID=1000
- PGID=1000
- TZ=America/Vancouver
- /etc/localtime:/etc/localtime:ro
- APP_URL=https://bookstack.mydomain.com
- DB_HOST=bookstack_db:3306
- DB_USERNAME=bookstack
- DB_PASSWORD=secret
- DB_DATABASE=bookstackapp
- APP_KEY=secret1
volumes:
- ./bookstack/uploads:/var/www/bookstack/public/uploads
- ./bookstack/storage-uploads:/var/www/bookstack/storage/uploads
- ./bookstack/config:/config
restart: unless-stopped
labels:
- "traefik.enable=true"
- "traefik.http.routers.bookstack.rule=Host(`bookstack.Mydomain.com`)"
- "traefik.http.routers.bookstack.entrypoints=https"
- "traefik.http.routers.bookstack.tls=true"
- "traefik.http.services.bookstack.loadbalancer.server.port=8080"
networks:
- proxy
- bookstack-network
volumes:
mysql-data:
uploads:
storage-uploads:
networks:
proxy:
external: true
bookstack-network:
driver: bridge
Container logs
error: missing DB_PASSWORD environment variable
error: missing DB_PASSWORD environment variable
error: missing DB_PASSWORD environment variable
error: missing DB_PASSWORD environment variable
error: missing DB_PASSWORD environment variable
error: missing DB_PASSWORD environment variable
error: missing DB_USERNAME environment variable
error: missing DB_USERNAME environment variable
error: missing DB_USERNAME environment variable
error: missing DB_USERNAME environment variable
error: missing DB_USERNAME environment variable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done