Updated docker-compose file

This commit is contained in:
2026-08-20 14:46:55 -04:00
parent 6f0fc6cb60
commit 28202bc016
+9 -12
View File
@@ -1,22 +1,19 @@
version: '3.8'
services:
offlineu:
build: .
container_name: offlineu-app
container_name: offlineu
network_mode: host
ports:
- "5000:5000"
environment:
- PUID=1000
- PGID=10
- TZ=America/New_York
- FLASK_ENV=production
volumes:
# Course library — grouped/browsable via the new Library view
# Mount a local directory for course data persistence
- /volume1/files/training:/app/courses
# Progress data persistence
- ./data:/app/data
# Mount a local directory for user data/progress
- /volume2/docker/offlineu/data:/app/data
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s