TEST: Complex docker-compose rework. Not tested yet
This commit is contained in:
@@ -14,11 +14,14 @@ services:
|
||||
volumes:
|
||||
- ${PATH_TO_CONFIG}:/config
|
||||
ports:
|
||||
- 6875:80
|
||||
- "6875:80"
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- bookstack_database
|
||||
|
||||
bookstack_database:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- bookstack-net
|
||||
|
||||
bookstack_database:
|
||||
image: lscr.io/linuxserver/mariadb
|
||||
container_name: bookstack_database
|
||||
@@ -32,4 +35,15 @@ services:
|
||||
- MYSQL_PASSWORD=${DB_USER_PASS}
|
||||
volumes:
|
||||
- ${PATH_TO_DB}:/config
|
||||
restart: unless-stopped
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
networks:
|
||||
- bookstack-net
|
||||
|
||||
networks:
|
||||
bookstack-net:
|
||||
driver: bridge
|
||||
|
||||
Reference in New Issue
Block a user