-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
140 lines (132 loc) · 3.32 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# https://docs.docker.com/compose/environment-variables/#the-env-file
# https://github.com/NuGet/Home/issues/10491#issuecomment-778841003
version: '3'
services:
gateway:
build:
context: ../../
dockerfile: src/ApiGateway/Dockerfile
container_name: einventory-gateway
restart: on-failure
ports:
- ${GATEWAY_PORT}:80
networks:
- einventory
catalogs:
image: catalogs:${TAG}
build:
args:
Version: "1"
context: ../../
dockerfile: src/Services/Catalogs/Dockerfile
container_name: einventory-catalogs
restart: on-failure
ports:
- ${CATALOGS_SVC_PORT}:80
depends_on:
- postgres
- rabbitmq
- mongo
networks:
- einventory
identity:
image: identity:${TAG}
build:
args:
Version: "1"
context: ../../
dockerfile: src/Services/Identity/Dockerfile
container_name: einventory-identity
restart: on-failure
ports:
- ${IDENTITY_SVC_PORT}:80
depends_on:
- postgres
- rabbitmq
networks:
- einventory
customers:
image: customers:${TAG}
build:
args:
Version: "1"
context: ../../
dockerfile: src/Services/Customers/Dockerfile
container_name: einventory-customers
restart: on-failure
ports:
- ${CUSTOMERS_SVC_PORT}:80
depends_on:
- postgres
- rabbitmq
- mongo
networks:
- einventory
#######################################################
# rabbitmq
#######################################################
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
restart: on-failure
ports:
- 5672:5672
- 15672:15672
# volumes:
# - rabbitmq:/var/lib/rabbitmq
networks:
- einventory
#######################################################
# mongo
#######################################################
mongo:
image: mongo
container_name: mongo
restart: on-failure
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_USER}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_PASS}
ports:
- ${MONGO_PORT}:${MONGO_PORT}
networks:
- einventory
#######################################################
# postgres
#######################################################
postgres:
image: postgres:11.1-alpine
container_name: postgres
ports:
- '5432:5432'
restart: on-failure
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
networks:
- einventory
#######################################################
# eventstore-db
#######################################################
eventstore:
image: eventstore/eventstore:latest
container_name: eventstore
restart: on-failure
environment:
- EVENTSTORE_CLUSTER_SIZE=1
- EVENTSTORE_RUN_PROJECTIONS=All
- EVENTSTORE_START_STANDARD_PROJECTIONS=false
- EVENTSTORE_EXT_TCP_PORT=1113
- EVENTSTORE_HTTP_PORT=2113
- EVENTSTORE_INSECURE=true
- EVENTSTORE_ENABLE_EXTERNAL_TCP=true
- EVENTSTORE_ENABLE_ATOM_PUB_OVER_HTTP=true
- EVENTSTORE_MEM_DB=true
ports:
- "1113:1113"
- "2113:2113"
networks:
- einventory
networks:
einventory:
name: einventory
driver: bridge