-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
46 lines (43 loc) · 986 Bytes
/
docker-compose.yaml
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
version: "3.8"
services:
jwt-server:
image: node:alpine
restart: always
command:
- npx
- --package
- jwt-mock-server
- -y
- start
ports:
- 9000:9000
enabler:
image: node:20
volumes:
- ./enabler:/home/node/app
restart: always
working_dir: /home/node/app
depends_on:
- processor
command: /bin/sh -c 'npm install && npm run dev -- --host 0.0.0.0 --port 3000'
env_file:
- ./enabler/.env
environment:
- VITE_PROCESSOR_URL=http://localhost:8080
ports:
- 3000:3000
processor:
image: node:20
volumes:
- ./processor:/home/node/app
working_dir: /home/node/app
depends_on:
- jwt-server
env_file:
- ./processor/.env
environment:
- CTP_JWKS_URL=http://jwt-server:9000/jwt/.well-known/jwks.json
- CTP_JWT_ISSUER=https://issuer.com
command: /bin/sh -c 'npm install && npm run watch'
ports:
- 8080:8080