version: '3.8' services: nextsnap: build: context: . dockerfile: Dockerfile container_name: nextsnap ports: - "${PORT:-8000}:8000" environment: - FLASK_ENV=production - SECRET_KEY=${SECRET_KEY:?SECRET_KEY must be set} - NEXTCLOUD_URL=${NEXTCLOUD_URL:?NEXTCLOUD_URL must be set} - TZ=${TZ:-UTC} volumes: - flask_sessions:/tmp/flask_session - app_data:/app/data restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8000/api/health"] interval: 30s timeout: 10s retries: 3 start_period: 10s networks: - nextsnap-network logging: driver: "json-file" options: max-size: "10m" max-file: "3" volumes: flask_sessions: driver: local app_data: driver: local networks: nextsnap-network: driver: bridge