32e559a833
I've learned this from the Jitsi config that you don't have to add a variable if the key name is the same in the compose file as it is in the .env file
40 lines
744 B
YAML
40 lines
744 B
YAML
---
|
|
version: "2"
|
|
volumes:
|
|
db:
|
|
|
|
services:
|
|
bookstack:
|
|
image: linuxserver/bookstack
|
|
container_name: bookstack
|
|
environment:
|
|
- PUID
|
|
- PGID
|
|
- TZ
|
|
- DB_HOST
|
|
- "DB_USER=${MYSQL_USER}"
|
|
- "DB_PASS=${MYSQL_PASSWORD}"
|
|
- "DB_DATABASE=${MYSQL_DATABASE}"
|
|
- APP_URL
|
|
volumes:
|
|
- ./config:/config
|
|
depends_on:
|
|
- db
|
|
links:
|
|
- db:db
|
|
ports:
|
|
- 8080:80
|
|
restart: unless-stopped
|
|
|
|
|
|
db:
|
|
image: mariadb:10.3
|
|
environment:
|
|
- MYSQL_RANDOM_ROOT_PASSWORD
|
|
- MYSQL_DATABASE
|
|
- MYSQL_USER
|
|
- MYSQL_PASSWORD
|
|
volumes:
|
|
- db:/var/lib/mysql
|
|
restart: unless-stopped
|