-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
174 lines (174 loc) · 3.73 KB
/
docker-compose.yml
File metadata and controls
174 lines (174 loc) · 3.73 KB
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
services:
postgres:
container_name: postgres
image: postgres:17
restart: always
volumes:
- ./postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
TZ: Asia/Seoul
command: [ "postgres", "-c", "log_statement=all", "-c", "log_destination=stderr" ]
redis:
image: redis/redis-stack-server
container_name: redis
restart: always
# environment:
# REDIS_ARGS: "--requirepass systempass"
ports:
- "6379:6379"
zipkin:
image: openzipkin/zipkin
container_name: zipkin
restart: always
ports:
- "9411:9411"
eureka-service:
container_name: eureka-service
build:
context: .
dockerfile: Dockerfile.server
ports:
- "8761:8761"
volumes:
- ./logs:/logs
- ./.env.server:/app/.env.server
depends_on:
- postgres
- redis
gateway-service:
container_name: gateway-service
build:
context: .
dockerfile: Dockerfile.gateway
ports:
- "8080:8080"
environment:
SPRING_PROFILES_ACTIVE: develop
volumes:
- ./logs:/logs
- ./.env.gateway:/app/.env.gateway
depends_on:
- postgres
- redis
- eureka-service
order-service:
container_name: order-service
build:
context: .
dockerfile: Dockerfile.order
ports:
- "12002:12002"
environment:
SPRING_PROFILES_ACTIVE: develop
volumes:
- ./logs:/logs
- ./.env.order:/app/.env.order
depends_on:
- postgres
- redis
- eureka-service
product-service:
container_name: product-service
build:
context: .
dockerfile: Dockerfile.product
ports:
- "11001:11001"
environment:
SPRING_PROFILES_ACTIVE: develop
volumes:
- ./logs:/logs
- ./.env.product:/app/.env.product
depends_on:
- postgres
- redis
- eureka-service
company-service:
container_name: company-service
build:
context: .
dockerfile: Dockerfile.company
ports:
- "11002:11002"
environment:
SPRING_PROFILES_ACTIVE: develop
volumes:
- ./logs:/logs
- ./.env.company:/app/.env.company
depends_on:
- postgres
- redis
- eureka-service
hub-service:
container_name: hub-service
build:
context: .
dockerfile: Dockerfile.hub
ports:
- "12001:12001"
environment:
SPRING_PROFILES_ACTIVE: develop
volumes:
- ./logs:/logs
- ./.env.hub:/app/.env.hub
depends_on:
- postgres
- redis
- eureka-service
user-service:
container_name: user-service
build:
context: .
dockerfile: Dockerfile.user
ports:
- "10001:10001"
environment:
SPRING_PROFILES_ACTIVE: develop
volumes:
- ./logs:/logs
- ./.env.user:/app/.env.user
depends_on:
- postgres
- redis
- eureka-service
delivery-service:
container_name: delivery-service
build:
context: .
dockerfile: Dockerfile.delivery
ports:
- "13001:13001"
environment:
SPRING_PROFILES_ACTIVE: develop
volumes:
- ./logs:/logs
- ./.env.delivery:/app/.env.delivery
depends_on:
- postgres
- redis
- eureka-service
message-service:
container_name: message-service
build:
context: .
dockerfile: Dockerfile.message
ports:
- "13002:13002"
environment:
SPRING_PROFILES_ACTIVE: develop
volumes:
- ./logs:/logs
- ./.env.message:/app/.env.message
depends_on:
- postgres
- redis
- eureka-service
networks:
default:
name: faster
external: true