-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (49 loc) · 997 Bytes
/
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
version: "3"
services:
node:
container_name: r_s_node
build:
context: "./docker/node"
dockerfile: "Dockerfile"
ports:
- 3000:3000
- 3002:3002
- 6006:6006
tty: true
volumes:
- .:/app
networks:
- r_s2_node
depends_on:
- mongo
mongo:
container_name: r_s_mongo
image: mongo
restart: always
ports:
- "27017:27017"
volumes:
- ./mongo/init:/docker-entrypoint-initdb.d
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: pass
TZ: Asia/Tokyo
networks:
- r_s2_node
mongo-express:
image: mongo-express
container_name: mongo_express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: pass
ME_CONFIG_MONGODB_SERVER: mongo
depends_on:
- mongo
networks:
- r_s2_node
networks:
r_s2_node:
driver: "bridge"