-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (65 loc) · 1.64 KB
/
docker-compose.yml
File metadata and controls
71 lines (65 loc) · 1.64 KB
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
60
61
62
63
64
65
66
67
68
69
70
services:
demo:
build:
dockerfile: packages/demo/docker/nodejs/Dockerfile
context: .
target: base
volumes:
- .:/app
working_dir: '/app/packages/demo'
command: 'npm run dev'
user: '${UID}:${GID}'
tty: true
ports:
- '5173:5173'
demo-api:
build:
dockerfile: packages/demo/docker/nodejs/Dockerfile
context: .
target: base
volumes:
- .:/app
working_dir: '/app/packages/demo-api'
command: 'npm run dev'
user: '${UID}:${GID}'
tty: true
ports:
- '3000:3000'
apisix:
image: apache/apisix:latest
volumes:
- ./packages/demo/docker/apisix/config.yaml:/usr/local/apisix/conf/config.yaml:ro
- ./packages/demo/docker/apisix/apisix.yaml:/usr/local/apisix/conf/apisix.yaml:ro
depends_on:
keycloak:
condition: service_healthy
ports:
- "9080:9080"
environment:
- GATEWAY_PORT=9080
- OIDC_CLIENT_ID=${OIDC_CLIENT_ID:-apisix}
- OIDC_CLIENT_SECRET=${OIDC_CLIENT_SECRET:-udfr6ORrDRavq9imuu72c4tpqWC9SHXL}
keycloak:
platform: linux/amd64
build:
dockerfile: packages/demo/docker/keycloak/Dockerfile
context: .
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
KC_HTTP_RELATIVE_PATH: /auth
volumes:
- keycloak-data:/opt/keycloak/data
command:
- start-dev
- --hostname=localhost
- --import-realm
ports:
- "8080:8080"
healthcheck:
test: [ "CMD-SHELL", "bash -c '</dev/tcp/localhost/8080' && exit 0 || exit 1" ]
interval: 2s
timeout: 60s
retries: 20
volumes:
keycloak-data: {}