zitadel/build/local/docker-compose-local.yml

49 lines
1.1 KiB
YAML
Raw Normal View History

version: '3.8'
services:
db:
restart: always
networks:
- zitadel
image: cockroachdb/cockroach:v21.2.5
command: start-single-node --insecure --listen-addr=0.0.0.0
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health?ready=1"]
interval: 10s
timeout: 30s
retries: 5
start_period: 20s
ports:
- 8080:8080
- 26257:26257
# 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
backend-run:
restart: on-failure
networks:
- zitadel
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:50002/management/v1/healthz"]
interval: 10s
timeout: 30s
retries: 5
start_period: 20s
depends_on:
db:
condition: service_healthy
build:
context: ../..
dockerfile: build/zitadel/Dockerfile
target: dev-go-build
environment:
- ZITADEL_EVENTSTORE_HOST=db
ports:
- 50001:50001
command:
[
'start',
]