forked from sckv/almeriajs-ddd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
106 lines (99 loc) · 2.08 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
version: '3.7'
services:
db:
image: postgres:11.7
container_name: db
ports:
- '4005:5432'
volumes:
- ./_dbscript:/docker-entrypoint-initdb.d:delegated
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
networks:
- local
nats:
image: nats:latest
container_name: nats
ports:
- '4222:4222'
networks:
- local
accounting:
build: ./packages/accounting
container_name: accounting
ports:
- '3003:3000'
networks:
- local
volumes:
- ./packages/accounting:/usr/src/app:delegated
- ./node_modules:/usr/src/app/node_modules:delegated
depends_on:
- db
command: 'npm start'
env_file:
- ./.env
billing:
build: ./packages/billing
container_name: billing
ports:
- '3001:3000'
networks:
- local
volumes:
- ./packages/billing:/usr/src/app:delegated
- ./node_modules:/usr/src/app/node_modules:delegated
command: 'npm start'
env_file:
- ./.env
ordering:
build: ./packages/ordering
container_name: ordering
ports:
- '3002:3000'
networks:
- local
volumes:
- ./packages/ordering:/usr/src/app:delegated
- ./node_modules:/usr/src/app/node_modules:delegated
depends_on:
- db
command: 'npm start'
env_file:
- ./.env
products:
build: ./packages/products
container_name: products
ports:
- '3004:3000'
networks:
- local
volumes:
- ./packages/products:/usr/src/app:delegated
- ./node_modules:/usr/src/app/node_modules:delegated
depends_on:
- db
command: 'npm start'
env_file:
- ./.env
graphql:
build: ./packages/graphql
container_name: graphql
ports:
- '3000:3000'
networks:
- local
volumes:
- ./packages/graphql:/usr/src/app:delegated
- ./node_modules:/usr/src/app/node_modules:delegated
depends_on:
- accounting
- billing
- ordering
command: 'npm start'
env_file:
- ./.env
networks:
local:
driver: bridge