Updating docker entrypoint to initialize the database

This commit is contained in:
2025-09-06 15:24:02 -04:00
parent 6d12ce25d3
commit 5eca8e08b1
5 changed files with 79 additions and 10 deletions

View File

@@ -1,5 +1,3 @@
version: '3.8'
services:
dosvault:
build: .
@@ -7,9 +5,7 @@ services:
- "8080:8080"
- "8081:8081"
volumes:
# Mount data directory for persistence
- dosvault_data:/app/data
# Mount ROM directory (customize this path)
- "${ROMS_PATH:-./roms}:/app/data/roms:ro"
environment:
# IGDB API Configuration
@@ -17,6 +13,9 @@ services:
- IGDB_SECRET_KEY=${IGDB_SECRET_KEY}
# Application Configuration
- DOSFRONTEND_CONFIG_DIR=/app/data
- DOSVAULT_ADMIN_USERNAME=${DOSVAULT_ADMIN_USERNAME:-}
- DOSVAULT_ADMIN_EMAIL=${DOSVAULT_ADMIN_EMAIL:-}
- DOSVAULT_ADMIN_PASSWORD=${DOSVAULT_ADMIN_PASSWORD:-}
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
@@ -27,4 +26,4 @@ services:
volumes:
dosvault_data:
driver: local
driver: local