mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-08 09:57:40 +00:00
bind dev cockroach to 127.0.0.1
This commit is contained in:
parent
b1be4333d9
commit
1c7c6304ae
@ -3,16 +3,13 @@ version: '3.8'
|
|||||||
services:
|
services:
|
||||||
zitadel:
|
zitadel:
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
|
||||||
- zitadel
|
|
||||||
image: ghcr.io/zitadel/zitadel:v2.0.0-v2-alpha.3-amd64
|
image: ghcr.io/zitadel/zitadel:v2.0.0-v2-alpha.3-amd64
|
||||||
command: admin start-from-init --masterkey "MasterkeyNeedsToHave32Characters"
|
command: admin start-from-init --masterkey "MasterkeyNeedsToHave32Characters"
|
||||||
environment:
|
environment:
|
||||||
- ZITADEL_DATABASE_HOST=db
|
|
||||||
- ZITADEL_EXTERNALSECURE=false
|
- ZITADEL_EXTERNALSECURE=false
|
||||||
- ZITADEL_DEFAULTINSTANCE_CUSTOMDOMAIN=localhost
|
- ZITADEL_DEFAULTINSTANCE_CUSTOMDOMAIN=localhost
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/debug"]
|
test: ["CMD", "curl", "-f", "http://127.0.0.1:8080/debug"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 30s
|
timeout: 30s
|
||||||
retries: 5
|
retries: 5
|
||||||
@ -20,24 +17,17 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
ports:
|
network_mode: 'host'
|
||||||
- 8080:8080
|
|
||||||
|
|
||||||
db:
|
db:
|
||||||
restart: always
|
restart: always
|
||||||
networks:
|
|
||||||
- zitadel
|
|
||||||
image: cockroachdb/cockroach:v22.1.0
|
image: cockroachdb/cockroach:v22.1.0
|
||||||
command: start-single-node --insecure --listen-addr=0.0.0.0
|
command: start-single-node --insecure --http-addr 127.0.0.1:9090
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "curl", "-f", "http://localhost:8080/health?ready=1"]
|
test: ["CMD", "curl", "-f", "http://127.0.0.1:9090/health?ready=1"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 30s
|
timeout: 30s
|
||||||
retries: 5
|
retries: 5
|
||||||
start_period: 20s
|
start_period: 20s
|
||||||
ports:
|
network_mode: 'host'
|
||||||
- 9090:8080
|
|
||||||
- 26257:26257
|
|
||||||
|
|
||||||
networks:
|
|
||||||
zitadel:
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user