Skip to content

Commit

Permalink
add healthcheck for pgadmin and postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
nstoik committed Jan 27, 2024
1 parent 620879f commit e2668c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ services:
- "dbdata:/var/lib/postgresql/data"
networks:
- farm_device
healthcheck:
test: ["CMD", "pg_isready", "-U", "${POSTGRES_USER}"]
labels:
- custom.label=farm_device

Expand All @@ -111,6 +113,8 @@ services:
networks:
- farm_device
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-O", "-", "http://localhost:80/misc/ping"]
labels:
- custom.label=farm_device
- traefik.enable=true
Expand Down

0 comments on commit e2668c6

Please sign in to comment.