Skip to content

Commit

Permalink
Merge pull request #5 from C4T-BuT-S4D/pomo/ark-db-healthcheck
Browse files Browse the repository at this point in the history
Add ark service healthcheck
  • Loading branch information
jnovikov authored Dec 20, 2024
2 parents baa55cb + 9151d43 commit ee7ede9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions services/ark/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ services:
volumes:
- postgres_data:/var/lib/postgresql/data
command: postgres -c max_connections=1000
healthcheck:
test: pg_isready -U postgres -d ark
interval: 10s
timeout: 5s
retries: 5
start_period: 30s

app:
build: .
restart: unless-stopped
depends_on:
- db
environment:
DATABASE_URL: postgres://postgres:postgres@db:5432/ark
ports:
Expand All @@ -39,6 +43,9 @@ services:
net.ipv4.tcp_keepalive_probes: 5
cpus: 2
mem_limit: 2048M
depends_on:
db:
condition: service_healthy

volumes:
postgres_data:
Expand Down

0 comments on commit ee7ede9

Please sign in to comment.