Files
devsim/compose.yaml

75 lines
1.6 KiB
YAML

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:
- 9124:80
depends_on:
- postgres
- mongo
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
ports:
- 9123:80
depends_on:
- postgres
- mongo
- postgres-migrator
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
depends_on:
postgres:
condition: service_healthy
restart: true
environment:
DEVSIM_PG_DSN: "postgres://devsim:devsim@postgres:5432/devsim?sslmode=disable"
postgres:
image: postgres:15-alpine
environment:
POSTGRES_DB: devsim
POSTGRES_PASSWORD: devsim
POSTGRES_USER: devsim
ports: ["5432:5432"]
healthcheck:
test: ["CMD-SHELL", "pg_isready -U devsim -d devsim"]
interval: 10s
retries: 5
start_period: 30s
timeout: 10s
mongo:
image: mongo:7