version: '3.8' # Alternative compose file using local directory for data storage # Usage: docker-compose -f docker-compose.local.yml up --build # or: podman-compose -f docker-compose.local.yml up --build 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 - ${AWS_CONFIG_PATH}:/tmp/aws-host:ro,z # Database storage - uses local directory - ${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