version: "3.8" services: app: build: context: .. dockerfile: deploy/Dockerfile image: soul-api:latest container_name: soul-api restart: unless-stopped env_file: - ./app.env ports: - "${APP_PORT:-8080}:${PORT:-8080}" volumes: - "${HOST_UPLOAD_DIR:-./data/uploads}:/app/uploads" - "${HOST_LOG_DIR:-./data/log}:/app/log" healthcheck: test: ["CMD", "sh", "-lc", "wget -qO- http://127.0.0.1:${PORT:-8080}/health"] interval: 15s timeout: 5s retries: 5 start_period: 20s