compose.yml (592B)
1 name: countdown-bot 2 3 services: 4 bot: 5 build: 6 context: . 7 dockerfile: bot.Dockerfile 8 environment: 9 - BOT_TOKEN=${BOT_TOKEN} 10 - DATABASE=postgresql://postgres:${DB_PASSWORD}@db:5432 11 depends_on: 12 db: 13 condition: service_healthy 14 15 db: 16 build: 17 context: . 18 dockerfile: db.Dockerfile 19 environment: 20 - POSTGRES_PASSWORD=${DB_PASSWORD} 21 volumes: 22 - pgdata:/var/lib/postgresql/data 23 healthcheck: 24 test: ["CMD-SHELL", "pg_isready -U postgres"] 25 interval: 1s 26 timeout: 5s 27 retries: 10 28 29 volumes: 30 pgdata: