heart2heart/docker-compose.yml

25 lines
573 B
YAML
Raw Normal View History

2024-08-03 03:48:20 +03:00
services:
meets:
2024-08-08 16:08:36 +03:00
build:
context: .
dockerfile: ./deploy/Dockerfile
2024-08-03 03:48:20 +03:00
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