diff --git a/docker-compose.yml b/docker-compose.yml index 68fb329..e89f1ab 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 + \ No newline at end of file