-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
100 lines (95 loc) · 1.8 KB
/
docker-compose.yaml
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
version: '3.8'
services:
api-gateway:
build:
context: ./api-gateway
dockerfile: Dockerfile
ports:
- "80:80"
depends_on:
# - agent
# - auth
# - customer
# - shopkeeper
# - email-service
- redis
# - audit-log
# agent:
# build:
# context: .
# dockerfile: Dockerfile
# args:
# PROJECT: agent
# env_file:
# - .env
# environment:
# - NODE_ENV=production
# ports:
# - "5000:5000"
# auth:
# build:
# context: .
# dockerfile: Dockerfile
# args:
# PROJECT: auth
# env_file:
# - .env
# environment:
# - NODE_ENV=production
# ports:
# - "5001:5001"
# customer:
# build:
# context: .
# dockerfile: Dockerfile
# args:
# PROJECT: customer
# env_file:
# - .env
# environment:
# - NODE_ENV=production
# ports:
# - "5002:5002"
# shopkeeper:
build:
context: .
dockerfile: Dockerfile
args:
PROJECT: shopkeeper
env_file:
- .env
environment:
- NODE_ENV=production
ports:
- "5003:5003"
redis:
image: redis:latest
ports:
- "6379:6379"
environment:
- ALLOW_EMPTY_PASSWORD=yes
command: ["redis-server", "--appendonly", "yes"]
# email-service:
# build:
# context: .
# dockerfile: Dockerfile
# args:
# PROJECT: email-service
# env_file:
# - .env
# environment:
# - NODE_ENV=production
# ports:
# - "5005:5005"
# audit-log:
# build:
# context: .
# dockerfile: Dockerfile
# args:
# PROJECT: audit-log
# env_file:
# - .env
# environment:
# - NODE_ENV=production
# ports:
# - "5006:5006"