forked from devratory/devratory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
120 lines (112 loc) · 2.34 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
version: "3.3"
services:
gateway:
image: devlab-gateway-ms:1.0.0
build:
context: ./devlab-gateway
target: development
dockerfile: ./Dockerfile
command: npm run start:dev
volumes:
- ./devlab-gateway:/usr/src/app
- /usr/src/app/node_modules
- ./workflows.json:/usr/src/app/workflows.json
container_name: ${GATEWAY_HOST}
restart: always
hostname: ${GATEWAY_HOST}
env_file:
- .env
ports:
- ${GATEWAY_PORT}:${GATEWAY_PORT}
networks:
- backend
links:
- redis
devlab:
image: devlab-ms:1.0.0
build:
context: ./devlab-ms
target: development
dockerfile: ./Dockerfile
command: npm run start:dev
volumes:
- ./devlab-ms:/usr/src/app
- /usr/src/app/node_modules
restart: unless-stopped
container_name: ${DEVLAB_HOST}
hostname: ${DEVLAB_HOST}
env_file:
- .env
ports:
- ${DEVLAB_PORT}:${DEVLAB_PORT}
networks:
- backend
depends_on:
- devlab_db
links:
- devlab_db
user:
image: ekhmoi/devlab-user:0.0.2
command: npm run start:prod
container_name: ${USER_HOST}
restart: always
hostname: ${USER_HOST}
env_file:
- .env
ports:
- ${USER_PORT}:${USER_PORT}
networks:
- backend
depends_on:
- devlab_db
links:
- devlab_db
token:
image: ekhmoi/devlab-token:0.0.4
command: npm run start:prod
container_name: ${TOKEN_HOST}
restart: always
hostname: ${TOKEN_HOST}
env_file:
- .env
ports:
- ${TOKEN_PORT}:${TOKEN_PORT}
networks:
- backend
depends_on:
- devlab_db
links:
- devlab_db
devlab_db:
image: mongo
container_name: devlab_db
volumes:
- ./db/data/db-files:/data/db
# - ./db/mongod.conf:/etc/mongod.conf
ports:
- "27017:27017"
# entrypoint: ['mongod', '--config', '/etc/mongod.conf']
logging:
driver: none
networks:
- backend
redis:
image: redis
container_name: devlab_redis
expose:
- 6379
networks:
- backend
# nginx:
# image: nginx:latest
# container_name: nginx
# volumes:
# - ./nginx/nginx.conf:/etc/nginx/nginx.conf
# ports:
# - 80:80
# - 443:443
# networks:
# - backend
networks:
backend:
driver: bridge