#version: '3.8' services: digiserver: build: . container_name: digiserver-v2 ports: - "80:5000" volumes: - ./instance:/app/instance - ./app/static/uploads:/app/app/static/uploads environment: - FLASK_ENV=production - SECRET_KEY=${SECRET_KEY:-your-secret-key-change-this} - ADMIN_USERNAME=${ADMIN_USERNAME:-admin} - ADMIN_PASSWORD=${ADMIN_PASSWORD:-admin123} restart: unless-stopped healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:5000/').read()"] interval: 30s timeout: 10s retries: 3 start_period: 40s # Optional: Redis for caching (uncomment if needed) # redis: # image: redis:7-alpine # container_name: digiserver-redis # restart: unless-stopped # volumes: # - redis-data:/data # volumes: # redis-data: