my-homelab-configs/infra/jeannie-temporal/docker-compose.yml

44 lines
991 B
YAML

services:
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
POSTGRES_USER: temporal
POSTGRES_PASSWORD: temporal
POSTGRES_DB: temporal
volumes:
- temporal-postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U temporal -d temporal"]
interval: 5s
timeout: 5s
retries: 12
temporal:
image: temporalio/auto-setup:1.25.0
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
DB: postgres12
DB_PORT: 5432
POSTGRES_USER: temporal
POSTGRES_PWD: temporal
POSTGRES_SEEDS: postgres
ports:
- "127.0.0.1:7233:7233"
temporal-ui:
image: temporalio/ui:2.34.0
restart: unless-stopped
depends_on:
- temporal
environment:
TEMPORAL_ADDRESS: temporal:7233
ports:
- "127.0.0.1:${JEANNIE_TEMPORAL_UI_PORT:-8233}:8080"
volumes:
temporal-postgres: