fix db init
This commit is contained in:
@@ -1,16 +1,20 @@
|
||||
version: '3.8'
|
||||
services:
|
||||
db:
|
||||
image: linuxserver/mariadb
|
||||
image: mariadb:10.11
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: rootpassword
|
||||
MYSQL_DATABASE: whats_the_point
|
||||
TZ: America/Toronto
|
||||
volumes:
|
||||
- db_data:/config
|
||||
- db_data:/var/lib/mysql
|
||||
ports:
|
||||
- "3306:3306"
|
||||
healthcheck:
|
||||
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
web:
|
||||
build: .
|
||||
@@ -24,7 +28,8 @@ services:
|
||||
DB_NAME: whats_the_point
|
||||
TMDB_API_KEY: your_tmdb_api_key_here
|
||||
depends_on:
|
||||
- db
|
||||
db:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- "4000:4000"
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user