fix db init

This commit is contained in:
2026-01-29 00:36:20 -05:00
parent 4a6e2c307c
commit b2886cbcb0
3 changed files with 36 additions and 13 deletions

View File

@@ -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: