2021-06-25 07:39:31 +00:00
|
|
|
version: '3.8'
|
2021-06-01 07:55:08 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
db:
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- zitadel
|
2022-02-11 12:33:31 +00:00
|
|
|
image: cockroachdb/cockroach:v21.2.5
|
2021-06-01 07:55:08 +00:00
|
|
|
command: start-single-node --insecure --listen-addr=0.0.0.0
|
2021-12-31 17:04:20 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:8080/health?ready=1"]
|
|
|
|
interval: 10s
|
|
|
|
timeout: 30s
|
|
|
|
retries: 5
|
|
|
|
start_period: 20s
|
2021-06-01 07:55:08 +00:00
|
|
|
ports:
|
|
|
|
- 8080:8080
|
|
|
|
- 26257:26257
|
2021-06-25 07:39:31 +00:00
|
|
|
|
2021-12-31 17:04:20 +00:00
|
|
|
# starts the backend (API's) of ZITADEL
|
|
|
|
# Port 50001 serves the GRPC API
|
|
|
|
# Port 50002 serves the REST API
|
|
|
|
# Port 50003 serves the login GUI
|
2021-06-01 07:55:08 +00:00
|
|
|
backend-run:
|
|
|
|
restart: on-failure
|
|
|
|
networks:
|
|
|
|
- zitadel
|
2021-12-31 17:04:20 +00:00
|
|
|
healthcheck:
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:50002/management/v1/healthz"]
|
|
|
|
interval: 10s
|
|
|
|
timeout: 30s
|
|
|
|
retries: 5
|
|
|
|
start_period: 20s
|
2021-06-01 07:55:08 +00:00
|
|
|
depends_on:
|
2021-12-31 17:04:20 +00:00
|
|
|
db:
|
|
|
|
condition: service_healthy
|
2021-06-01 07:55:08 +00:00
|
|
|
build:
|
|
|
|
context: ../..
|
2021-07-27 12:34:56 +00:00
|
|
|
dockerfile: build/zitadel/Dockerfile
|
2021-06-01 07:55:08 +00:00
|
|
|
target: dev-go-build
|
2021-06-25 07:39:31 +00:00
|
|
|
environment:
|
2021-06-01 07:55:08 +00:00
|
|
|
- ZITADEL_EVENTSTORE_HOST=db
|
|
|
|
ports:
|
2021-12-31 17:04:20 +00:00
|
|
|
- 50001:50001
|
2021-06-25 07:39:31 +00:00
|
|
|
command:
|
|
|
|
[
|
|
|
|
'start',
|
|
|
|
]
|