-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathdocker-compose.yml
54 lines (49 loc) · 976 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
52
53
version: '3'
services:
db:
image: mongo:5.0.12
container_name: db
ports:
- "4002:27017"
restart: always
db-fixture:
image: db-fixture
build: ./db-fixture
container_name: db-fixture
depends_on:
- db
worker:
image: worker
build:
context: ./worker
dockerfile: Dockerfile-dev
container_name: worker
volumes:
- ./tmp/npm:/root/.npm:z
- ./worker/src:/usr/src/app/src:z
ports:
- "4001:80"
environment:
- PORT=80
- DBHOST=mongodb://db:27017
- NODE_ENV=development
depends_on:
- db
restart: always
gateway:
image: gateway
build:
context: ./gateway
dockerfile: Dockerfile-dev
container_name: gateway
volumes:
- ./tmp/npm:/root/.npm:z
- ./gateway/src:/usr/src/app/src:z
ports:
- "4000:80"
environment:
- PORT=80
- NODE_ENV=development
depends_on:
- worker
restart: always