Skip to content

Commit

Permalink
Health checks for Bamboo, Nginx and PostgreSQL (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
mblomdahl committed Sep 25, 2022
1 parent 89a6d93 commit 5d049bd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ services:
image: nginx_proxy
build: ./nginx_proxy
container_name: nginx_proxy
healthcheck:
test: [ "CMD", "curl", "-s", "-k", "https://${PROXY_HOSTNAME}:${PROXY_PORT}/rest/api/latest/status" ]
timeout: 5s
interval: 30s
retries: 3
restart: unless-stopped
ports:
- target: 80
Expand All @@ -27,6 +32,11 @@ services:
image: bamboo_server
build: ./bamboo_server
container_name: bamboo_server
healthcheck:
test: [ "CMD", "curl", "-s", "http://localhost:${BAMBOO_PORT}/rest/api/latest/status" ]
timeout: 5s
interval: 30s
retries: 3
restart: unless-stopped
depends_on:
- postgresql_server
Expand Down Expand Up @@ -82,6 +92,11 @@ services:
postgresql_server:
image: postgres:14.5
container_name: bamboo_postgresql
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "${DB_NAME}", "-U", "${DB_USER}" ]
timeout: 5s
interval: 10s
retries: 3
restart: unless-stopped
ports:
- target: 5432
Expand Down

0 comments on commit 5d049bd

Please sign in to comment.