mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-19 06:17:32 +00:00
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
zitadel:
|
|
restart: 'always'
|
|
networks:
|
|
- 'zitadel'
|
|
image: 'ghcr.io/zitadel/zitadel:latest'
|
|
command: 'start-from-init --masterkey "MasterkeyNeedsToHave32Characters" --tlsMode disabled'
|
|
environment:
|
|
- 'ZITADEL_DATABASE_COCKROACH_HOST=crdb'
|
|
- 'ZITADEL_EXTERNALSECURE=false'
|
|
- 'ZITADEL_FIRSTINSTANCE_MACHINEKEYPATH=/machinekey/zitadel-admin-sa.json'
|
|
- 'ZITADEL_FIRSTINSTANCE_ORG_MACHINE_MACHINE_USERNAME=zitadel-admin-sa'
|
|
- 'ZITADEL_FIRSTINSTANCE_ORG_MACHINE_MACHINE_NAME=Admin'
|
|
- 'ZITADEL_FIRSTINSTANCE_ORG_MACHINE_MACHINEKEY_TYPE=1'
|
|
depends_on:
|
|
crdb:
|
|
condition: 'service_healthy'
|
|
ports:
|
|
- '8080:8080'
|
|
volumes:
|
|
- ./machinekey:/machinekey
|
|
|
|
crdb:
|
|
restart: 'always'
|
|
networks:
|
|
- 'zitadel'
|
|
image: 'cockroachdb/cockroach:latest'
|
|
command: 'start-single-node --insecure'
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8080/health?ready=1"]
|
|
interval: '10s'
|
|
timeout: '30s'
|
|
retries: 5
|
|
start_period: '20s'
|
|
ports:
|
|
- '9090:8080'
|
|
- '26257:26257'
|
|
|
|
networks:
|
|
zitadel:
|