34 lines
895 B
YAML
34 lines
895 B
YAML
services:
|
|
photo-date-editor:
|
|
build: .
|
|
container_name: photo-date-editor
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env
|
|
ports:
|
|
- "${APP_PORT:-8080}:8080"
|
|
environment:
|
|
APP_URL: "${APP_URL:-http://localhost:8080}"
|
|
APP_NAME: "${APP_NAME:-Photo Date Editor}"
|
|
APP_TITLE: "${APP_TITLE:-}"
|
|
APP_SUBTITLE: "${APP_SUBTITLE:-}"
|
|
ENABLED_FORMATS: "${ENABLED_FORMATS:-jpg,png,tiff,heif,dng,canon}"
|
|
MAX_UPLOAD_MB: "${MAX_UPLOAD_MB:-150}"
|
|
LOG_LEVEL: "${LOG_LEVEL:-INFO}"
|
|
DATA_DIR: "/data"
|
|
volumes:
|
|
- photo-date-editor-data:/data
|
|
healthcheck:
|
|
test:
|
|
- CMD
|
|
- python
|
|
- -c
|
|
- "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8080/api/health', timeout=3)"
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
volumes:
|
|
photo-date-editor-data:
|