-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose.yml
118 lines (102 loc) · 2.34 KB
/
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
version: '3.7'
services:
rabbitmq3:
restart: always
container_name: "rabbitmq"
image: rabbitmq:3-management
environment:
- RABBITMQ_DEFAULT_USER=myuser
- RABBITMQ_DEFAULT_PASS=mypassword
ports:
- '5672:5672'
- '15672:15672'
volumes:
- ~/.docker-conf/rabbitmq/data/:/var/lib/rabbitmq/
- ~/.docker-conf/rabbitmq/log/:/var/log/rabbitmq
postgres:
container_name: demo_postgres
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
PGDATA: "/data/postgres"
volumes:
- postgres:/data/postgres
- ./docker_postgres_init.sql:/docker-entrypoint-initdb.d/docker_postgres_init.sql
ports:
- "5432:5432"
restart: unless-stopped
authms:
restart: always
image: furkansavsatli/savsatli:auth-service
ports:
- '8081:8081'
environment:
POSTGRES: postgres
AUTHMS: authms
QUERYMS: queryms
ORDERMS: orderms
SHIPMENTMS: shipmentms
links:
- postgres
gatewayms:
restart: always
image: furkansavsatli/savsatli:gateway-service
ports:
- '9991:9991'
environment:
AUTHMS: authms
QUERYMS: queryms
ORDERMS: orderms
SHIPMENTMS: shipmentms
orderms:
restart: always
image: furkansavsatli/savsatli:order-service
ports:
- '8082:8082'
links:
- postgres
environment:
POSTGRES: postgres
RABBITMQ: rabbitmq3
AUTHMS: authms
QUERYMS: queryms
SHIPMENTMS: shipmentms
shipmentms:
restart: always
image: furkansavsatli/savsatli:shipment-service
ports:
- '8083:8083'
links:
- postgres
environment:
POSTGRES: postgres
RABBITMQ: rabbitmq3
AUTHMS: authms
QUERYMS: queryms
ORDERMS: orderms
queryms:
restart: always
image: furkansavsatli/savsatli:query-service
ports:
- '8084:8084'
links:
- postgres
environment:
POSTGRES: postgres
RABBITMQ: rabbitmq3
AUTHMS: authms
ORDERMS: orderms
SHIPMENTMS: shipmentms
parceldelivery:
restart: always
image: furkansavsatli/savsatli:parcel-delivery-application
ports:
- '8080:8080'
environment:
MY_SECRET_KEY: ${MY_SECRET_KEY}
GATEWAY: gatewayms
networks:
spring-postgres:
volumes:
postgres: