-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathdocker-compose.yml
53 lines (53 loc) · 1.14 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
services:
oidc:
image: node:18.17-alpine
command: yarn start:oidc
working_dir: /app
environment:
- PORT=80
- OIDC_ISSUER=$PUBLIC_OIDC_ISSUER
- MONGODB_URI=$MONGODB_URI
ports:
- '3000:80'
volumes:
- .:/app
api:
image: node:18.17-alpine
command: yarn start:api
working_dir: /app
environment:
- PORT=80
- OIDC_ISSUER=$INTERNAL_OIDC_ISSUER
- CLIENT_ID=api
- CLIENT_SECRET=night-wolf
ports:
- '3006:80'
volumes:
- .:/app
app:
image: node:18.17-alpine
command: yarn start:app
working_dir: /app
environment:
- PORT=80
- PUBLIC_OIDC_ISSUER=http://localhost:3000
- PUBLIC_APP_URL=http://localhost:3005
- PUBLIC_API_URL=http://localhost:3006
- CLIENT_ID=app
- CLIENT_SECRET=scorpion
ports:
- '3005:80'
volumes:
- .:/app
mongo:
image: mongo:5.0
ports:
- '27017:27017'
volumes:
- mongo-data:/data/db
healthcheck:
test: test $$(mongo --quiet --eval "db.serverStatus().ok") -eq 1
interval: 10s
start_period: 30s
volumes:
mongo-data: {}