-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
58 lines (54 loc) · 1.3 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
version: "3.8"
services:
mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_DATABASE: access
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_NON_ROOT_USERNAME: telicent-access
MONGO_NON_ROOT_PASSWORD: password
volumes:
- ./init-mongo.sh:/docker-entrypoint-initdb.d/init-mongo.sh:ro
- db_data:/data/db
ports:
- "27017:27017"
healthcheck:
test:
[
"CMD-SHELL",
'echo ''db.runCommand("ping").ok'' | mongosh localhost:27017/test --quiet',
]
interval: 30s
timeout: 10s
retries: 5
start_period: 40s
api:
build:
context: .
dockerfile: ./Dockerfile
restart: always
depends_on:
mongo:
condition: service_healthy
ports:
- 8091:8091
environment:
DEPLOYED_DOMAIN: http://localhost:8080
MONGO_URL: mongo:27017
MONGO_PROTOCOL: mongodb
MONGO_COLLECTION: access
MONGO_USER: telicent-access
MONGO_PWD: password
OPENID_PROVIDER_URL: development
SCIM_ENABLED: false
command: ["/app/wait-for.sh", "mongo:27017", "--", "node", "dist/index.js"]
ui:
build:
context: ./frontend
dockerfile: ./Dockerfile
ports:
- "8080:8080"
volumes:
db_data: