mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-20 14:34:25 +00:00
Replaces CockroachDB as default in self hosting examples. * Update docs/docs/concepts/architecture/software.md Co-authored-by: Elio Bischof <[email protected]> * Update docs/docs/concepts/architecture/software.md Co-authored-by: Elio Bischof <[email protected]> --------- Co-authored-by: Elio Bischof <[email protected]>
52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
version: '3.8'
|
|
services:
|
|
|
|
traefik:
|
|
networks:
|
|
- 'zitadel'
|
|
image: "traefik:latest"
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- "./example-traefik.yaml:/etc/traefik/traefik.yaml"
|
|
|
|
zitadel:
|
|
restart: 'always'
|
|
networks:
|
|
- 'zitadel'
|
|
image: 'ghcr.io/zitadel/zitadel:stable'
|
|
command: 'start-from-init --config /example-zitadel-config.yaml --config /example-zitadel-secrets.yaml --steps /example-zitadel-init-steps.yaml --masterkey "${ZITADEL_MASTERKEY}" --tlsMode external'
|
|
depends_on:
|
|
db:
|
|
condition: 'service_healthy'
|
|
volumes:
|
|
- './example-zitadel-config.yaml:/example-zitadel-config.yaml:ro'
|
|
- './example-zitadel-secrets.yaml:/example-zitadel-secrets.yaml:ro'
|
|
- './example-zitadel-init-steps.yaml:/example-zitadel-init-steps.yaml:ro'
|
|
|
|
db:
|
|
image: postgres:16-alpine
|
|
restart: always
|
|
environment:
|
|
- POSTGRES_USER=root
|
|
- POSTGRES_PASSWORD=postgres
|
|
ports:
|
|
- '5432:5432'
|
|
networks:
|
|
- 'zitadel'
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "pg_isready", "-d", "db_prod"]
|
|
interval: 10s
|
|
timeout: 60s
|
|
retries: 5
|
|
start_period: 10s
|
|
volumes:
|
|
- 'data:/var/lib/postgresql/data:rw'
|
|
|
|
networks:
|
|
zitadel:
|
|
|
|
volumes:
|
|
data:
|