heart2heart/docker-compose.yml

23 lines
520 B
YAML
Raw Normal View History

2024-08-03 03:48:20 +03:00
services:
meets:
build: .
depends_on:
postgresql:
condition: service_healthy
restart: true
2024-08-03 03:48:20 +03:00
env_file: meets.env
volumes:
- ./bot_data:/usr/src/app/bot_data
- type: bind
source: ./config.json
target: /usr/src/app/config.json
postgresql:
healthcheck:
test: ["CMD", "pg_isready", "-U", "meets"]
interval: 2s
start_period: 2s
2024-08-03 03:48:20 +03:00
image: "postgres:15"
env_file: meets.env
volumes:
- ./postgres:/var/lib/postgresql/data