Files
nwxraybot/docker-compose.yml
Sergey Elpashev d0bc379518
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Feat: test woodpecker ci
2024-12-27 15:48:24 +03:00

41 lines
769 B
YAML

services:
bot:
image: aboba:latest
deploy:
replicas: 1
restart_policy:
condition: on-failure
networks:
- bot_network
depends_on:
- db
db:
image: postgres:17-alpine
deploy:
replicas: 1
restart_policy:
condition: on-failure
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_DB: ${POSTGRES_DB:-postgres}
ports:
- 5432
healthcheck:
test: ["CMD", "pg_isready"]
interval: 10s
timeout: 5s
retries: 10
networks:
- bot_network
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
bot_network:
driver: overlay
volumes:
postgres_data: