forked from coop-cloud/swarmpit
Add healthcheck & bump compose version
This commit is contained in:
parent
35fbff1261
commit
1572a1fdde
11
compose.yml
11
compose.yml
@ -1,4 +1,4 @@
|
|||||||
version: '3.3'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
@ -11,7 +11,16 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- net
|
- net
|
||||||
- proxy
|
- proxy
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "curl", "-f", "http://localhost:8080"]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 10
|
||||||
|
start_period: 1m
|
||||||
deploy:
|
deploy:
|
||||||
|
update_config:
|
||||||
|
failure_action: rollback
|
||||||
|
order: start-first
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpus: '0.50'
|
cpus: '0.50'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user