Skip to content

Commit 4692ca6

Browse files
committed
Add the health check
[refs #ed348cc55dc4]
1 parent f9994f3 commit 4692ca6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

swarm/swarm-demo-frontend/docker-compose.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ services:
55
image: jfahrer/swarm-demo-frontend:v10
66
env_file:
77
- config/app.env
8+
healthcheck:
9+
test: curl -f http://localhost:8080/status || false
10+
interval: 2s
11+
retries: 3
12+
start_period: 3s
813

914
db:
1015
image: postgres:9.6-alpine

0 commit comments

Comments
 (0)