-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
59 lines (55 loc) · 1.36 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
networks:
zitadel_test_network:
driver: bridge
services:
zitadel:
restart: 'always'
networks:
- zitadel_test_network
image: 'ghcr.io/zitadel/zitadel:latest'
command: 'start-from-init --masterkey "MasterkeyNeedsToHave32Characters" --tlsMode disabled'
environment:
- 'ZITADEL_DATABASE_COCKROACH_HOST=crdb'
- 'ZITADEL_EXTERNALSECURE=false'
depends_on:
crdb:
condition: 'service_healthy'
ports:
- '8080:8080'
crdb:
restart: 'always'
networks:
- zitadel_test_network
image: 'cockroachdb/cockroach:v24.2.0'
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'
api:
build: ./backend
ports:
- "8000:8000"
volumes:
- ./backend:/api
command: bash -c "poetry run python manage.py runserver 0.0.0.0:8000"
environment:
- ZITADEL_CLIENT_ID=EXAMPLE
- ZITADEL_CLIENT_SECRET=EXAMPLE
networks:
- zitadel_test_network
web:
build: ./frontend
ports:
- "5173:5173"
volumes:
- ./frontend:/front
- /front/node_modules
command: bash -c "npm run dev-docker"
networks:
- zitadel_test_network