add healthcheck service

This commit is contained in:
2024-08-17 01:44:20 +03:00
parent 25762cbae8
commit f635d4ca5b
11 changed files with 422 additions and 15 deletions

View File

@ -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