-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (49 loc) · 1.22 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
version: '3.7'
services:
hbk-api:
build:
context: .
target: base
command: sh -c "yarn && yarn dev"
volumes:
- .:/app
links:
- 'hbk-mongo:hbk-mongo'
environment:
- NODE_ENV=development
- PORT=9000
- MONGODB_URI=mongodb://root:password@hbk-mongo/hbk-setup?authSource=admin
- SEED_DB=
- AUTH0_ENABLED=${AUTH0_ENABLED}
- AUTH0_AUDIENCE=${AUTH0_AUDIENCE}
- AUTH0_ISSUER=${AUTH0_ISSUER}
ports:
- 9000:9000
- 9229:9229
hbk-mongo:
image: mongo:latest
restart: 'no'
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
ports:
- 27017:27017
volumes:
- hbk-mongo:/data/db
hbk-mongo-express:
image: mongo-express
ports:
- 8081:8081
environment:
- ME_CONFIG_MONGODB_SERVER=hbk-mongo
- ME_CONFIG_MONGODB_PORT=27017
- ME_CONFIG_MONGODB_ENABLE_ADMIN=true
- ME_CONFIG_MONGODB_AUTH_DATABASE=admin
- ME_CONFIG_MONGODB_AUTH_USERNAME=root
- ME_CONFIG_MONGODB_AUTH_PASSWORD=password
- ME_CONFIG_MONGODB_ADMINUSERNAME=root
- ME_CONFIG_MONGODB_ADMINPASSWORD=password
links:
- 'hbk-mongo:hbk-mongo'
volumes:
hbk-mongo: