version: '3.8' services: sgo: build: . container_name: sgo ports: - "${SGO_PORT:-5000}:5000" volumes: # AWS credentials - mounted to temp location, copied by entrypoint # IMPORTANT: You must set AWS_CONFIG_PATH in .env file # Example: AWS_CONFIG_PATH=/home/username/.aws - ${AWS_CONFIG_PATH}:/tmp/aws-host:ro,z # Database storage - uses Docker volume by default # To use local directory instead, comment the volume line and uncomment the bind mount - sgo-data:/app/data # - ${DATA_PATH:-./data}:/app/data environment: # User/Group IDs - set to match your host user for proper permissions - PUID=${PUID:-1000} - PGID=${PGID:-1000} # Debug mode - set to true for Flask debug logging - DEBUG=${DEBUG:-false} # Flask environment - FLASK_ENV=${FLASK_ENV:-production} - PYTHONUNBUFFERED=1 restart: unless-stopped volumes: # Named volume for persistent database storage # Data persists across container restarts and rebuilds sgo-data: