From 28202bc016c2684388554c1834abb12cddd71cc2 Mon Sep 17 00:00:00 2001 From: Michael Sitz Date: Thu, 20 Aug 2026 14:46:55 -0400 Subject: [PATCH] Updated docker-compose file --- docker-compose.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) 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