30 lines
735 B
YAML
30 lines
735 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
dosvault:
|
|
build: .
|
|
ports:
|
|
- "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
|
|
- IGDB_CLIENT_ID=${IGDB_CLIENT_ID}
|
|
- IGDB_SECRET_KEY=${IGDB_SECRET_KEY}
|
|
# Application Configuration
|
|
- DOSFRONTEND_CONFIG_DIR=/app/data
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
volumes:
|
|
dosvault_data:
|
|
driver: local |