Updating docker entrypoint to initialize the database
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user