mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 02:54:20 +00:00
2f3a482ade
* not working * test ci * correct path * test * test * test * remove k8s & test * test * test image * typo * test * fix * test * fix * test * fix * fix windows * fix * fix * fix codecov * fix with arch * test * test * test * test * trial * trial * trial * trial * trial * trial * trial * try * try * first improvement * trial * improve * improve * improve * use bash * trial * random test * wip * test with goreleaser and semrel * fix typo * trial * add buildx * define default * force buildkit * use buildx * debug GH docker * use images * debug docker * work around image name issues * trial * test * test with prebuilt image * fix * use load * test * use only docker * trial * test * use load * test * test with docker driver * trial * trial * trial * use arm * upload artifacts * try to cache grpc base * try to use a cache * fall back * test * fix * improve * upload artifacts * fix * name things * add tag if poc * args for protos * remove v2 build Co-authored-by: Livio Amstutz <livio.a@gmail.com>
49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
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',
|
|
]
|