-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
110 lines (101 loc) · 2.32 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
version: '3.7'
services:
config-server:
image: store-config-service
build:
context: .
dockerfile: ./store-config-service/Dockerfile
ports:
- 8888:8888
restart: always
networks:
- spring-cloud-network
eureka-server:
image: store-eureka-service
build:
context: .
dockerfile: ./store-eureka-service/Dockerfile
ports:
- 9091:9091
restart: always
depends_on:
- config-server
networks:
- spring-cloud-network
auth-server:
image: store-auth-service
build:
context: .
dockerfile: ./store-auth-service/Dockerfile
ports:
- 9092:9092
environment:
- "SPRING_PROFILES_ACTIVE=container"
restart: always
depends_on:
- config-server
- eureka-server
- auth-db
networks:
- spring-cloud-network
- auth-network
product-server:
image: store-product-service
build:
context: .
dockerfile: ./store-product-service/Dockerfile
ports:
- 9093:9093
environment:
- "SPRING_PROFILES_ACTIVE=container"
restart: always
depends_on:
- config-server
- eureka-server
- auth-server
- product-db
networks:
- spring-cloud-network
- product-network
gateway-server:
image: store-gateway-service
build:
context: .
dockerfile: ./store-gateway-service/Dockerfile
ports:
- 8080:8080
restart: always
depends_on:
- config-server
- eureka-server
networks:
- spring-cloud-network
auth-db:
image: postgres:latest
ports:
- "5432:5432"
restart: always
environment:
POSTGRES_DB: auth
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
networks:
- auth-network
product-db:
image: postgres:latest
ports:
- "5433:5432"
restart: always
environment:
POSTGRES_DB: product
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
networks:
- product-network
networks:
spring-cloud-network:
driver: bridge
auth-network:
driver: bridge
product-network:
driver: bridge