add healthcheck service
This commit is contained in:
25
compose.yaml
25
compose.yaml
@ -1,4 +1,17 @@
|
||||
services:
|
||||
web.mem:
|
||||
image: git.loyso.art/devsim-web:latest
|
||||
ports:
|
||||
- 9125:80
|
||||
environment:
|
||||
DEVSIM_STORE_TYPE: memory
|
||||
healthcheck:
|
||||
test: ["CMD", "/app/utils", "ready"]
|
||||
interval: 10s
|
||||
retries: 5
|
||||
start_period: 5s
|
||||
timeout: 10s
|
||||
|
||||
web.mongo:
|
||||
image: git.loyso.art/devsim-web:latest
|
||||
ports:
|
||||
@ -9,6 +22,12 @@ services:
|
||||
environment:
|
||||
DEVSIM_MONGO_DSN: mongodb://mongo
|
||||
DEVSIM_STORE_TYPE: mongo
|
||||
healthcheck:
|
||||
test: ["CMD", "/app/utils", "ready"]
|
||||
interval: 10s
|
||||
retries: 5
|
||||
start_period: 5s
|
||||
timeout: 10s
|
||||
|
||||
web.pg:
|
||||
image: git.loyso.art/devsim-web:latest
|
||||
@ -21,6 +40,12 @@ services:
|
||||
environment:
|
||||
DEVSIM_PG_DSN: "postgres://devsim:devsim@postgres:5432/devsim?sslmode=disable"
|
||||
DEVSIM_STORE_TYPE: pg
|
||||
healthcheck:
|
||||
test: ["CMD", "/app/utils", "ready"]
|
||||
interval: 10s
|
||||
retries: 5
|
||||
start_period: 5s
|
||||
timeout: 10s
|
||||
|
||||
postgres-migrator:
|
||||
image: git.loyso.art/devsim-migrator:latest
|
||||
|
||||
Reference in New Issue
Block a user