name: quest-bsbled services: db: image: postgres:15 restart: unless-stopped environment: POSTGRES_DB: quest POSTGRES_USER: quest POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Preencha POSTGRES_PASSWORD no arquivo .env} volumes: - database:/var/lib/postgresql/data healthcheck: test: ["CMD-SHELL", "pg_isready -U \"$${POSTGRES_USER}\" -d \"$${POSTGRES_DB}\""] interval: 10s timeout: 5s retries: 5 start_period: 20s logging: driver: json-file options: max-size: "10m" max-file: "3" app: image: quest-bsbled:ed1b9a6382716ddac4b8049d0ce744c74c83665f build: context: https://github.com/nandofmike/quest.git#ed1b9a6382716ddac4b8049d0ce744c74c83665f dockerfile: Dockerfile pull_policy: never restart: unless-stopped init: true env_file: - .env environment: BASE_URL: ${BASE_URL:?Preencha BASE_URL no arquivo .env} SECRET_KEY_BASE: ${SECRET_KEY_BASE:?Preencha SECRET_KEY_BASE no arquivo .env} DATABASE_URL: postgres://quest:${POSTGRES_PASSWORD:?Preencha POSTGRES_PASSWORD no arquivo .env}@db:5432/quest PRESENTATION_STORAGE: local PRESENTATION_STORAGE_DIR: /app/uploads ports: - "127.0.0.1:4000:4000" volumes: - uploads:/app/uploads depends_on: db: condition: service_healthy healthcheck: test: ["CMD", "curl", "--fail", "--silent", "--show-error", "--output", "/dev/null", "http://localhost:4000/"] interval: 15s timeout: 5s retries: 5 start_period: 120s logging: driver: json-file options: max-size: "10m" max-file: "3" volumes: database: name: quest-bsbled-db uploads: name: quest-bsbled-uploads networks: default: name: quest-bsbled-net