-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
155 lines (137 loc) · 3.79 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
version: "3.9"
x-microservice-environment: µservice-environment
- MINOS_BROKER_QUEUE_HOST=postgres
- MINOS_BROKER_HOST=kafka
- MINOS_REPOSITORY_HOST=postgres
- MINOS_SNAPSHOT_HOST=postgres
- MINOS_DISCOVERY_HOST=discovery
x-microservice-depends-on: µservice-depends-on
- postgres
- kafka
- discovery
services:
zookeeper:
restart: always
image: wurstmeister/zookeeper:latest
kafka:
restart: always
image: wurstmeister/kafka:latest
ports:
- "9092:9092"
depends_on:
- zookeeper
environment:
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ADVERTISED_PORT: 9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
postgres:
restart: always
build: external/postgres
ports:
- "5432:5432"
volumes:
- postgres_volume:/var/lib/postgresql
environment:
- POSTGRES_MULTIPLE_DATABASES=order_db,order_query_db,payment_db,product_db,ticket_db,customer_db,cart_query_db,ticket_query_db,product_query_db,payment_query_db,review_db,review_query_db,auth_db,auth_query_db,cart_db,cart_query_db
- POSTGRES_USER=minos
- POSTGRES_PASSWORD=min0s
redis:
restart: always
image: redis:latest
tavern:
build: external/tavern
profiles:
- donotstart
volumes:
- ./external/tavern/:/tavern/:ro
api-gateway:
restart: always
image: ghcr.io/clariteia/minos-apigateway:0.1.0
ports:
- "5566:5566"
environment:
API_GATEWAY_REST_PORT: 5566
API_GATEWAY_REST_AUTH_ENABLED: "true"
API_GATEWAY_REST_AUTH_HOST: microservice-authentication
API_GATEWAY_REST_AUTH_PORT: 8089
API_GATEWAY_REST_AUTH_METHOD: POST
API_GATEWAY_REST_AUTH_PATH: /token
API_GATEWAY_DISCOVERY_PORT: 5567
API_GATEWAY_DISCOVERY_HOST: discovery
depends_on:
- discovery
- microservice-authentication
discovery:
restart: always
image: ghcr.io/clariteia/minos-discovery:0.0.8
ports:
- "5567:5567"
environment:
DISCOVERY_SERVICE_PORT: 5567
DISCOVERY_SERVICE_DB_HOST: redis
DISCOVERY_SERVICE_DB_PORT: 6379
depends_on:
- redis
microservice-authentication:
restart: always
build:
context: microservices/authentication
target: production
environment: *microservice-environment
depends_on: *microservice-depends-on
microservice-order:
restart: always
build:
context: microservices/order
target: production
environment: *microservice-environment
depends_on: *microservice-depends-on
microservice-payment:
restart: always
build:
context: microservices/payment
target: production
environment: *microservice-environment
depends_on: *microservice-depends-on
microservice-product:
restart: always
build:
context: microservices/product
target: production
environment: *microservice-environment
depends_on: *microservice-depends-on
microservice-ticket:
restart: always
build:
context: microservices/ticket
target: production
environment: *microservice-environment
depends_on: *microservice-depends-on
microservice-customer:
restart: always
build:
context: microservices/customer
target: production
environment: *microservice-environment
depends_on: *microservice-depends-on
microservice-review:
restart: always
build:
context: microservices/review
target: production
environment: *microservice-environment
depends_on: *microservice-depends-on
microservice-cart:
restart: always
build:
context: microservices/cart
target: production
environment: *microservice-environment
depends_on: *microservice-depends-on
frontend:
restart: always
build: external/front
ports:
- "3000:3000"
volumes:
postgres_volume: