-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (55 loc) · 1.16 KB
/
Copy pathdocker-compose.yml
File metadata and controls
61 lines (55 loc) · 1.16 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
version: '3.8'
services:
gateway:
build:
context: ./gateway-service
ports:
- "8080:8080"
depends_on:
- auth-service
- product-service
- order-service
networks:
- app-network
environment:
- SPRING_PROFILES_ACTIVE=docker
# - EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://eureka-server:8761/eureka
auth-service:
build:
context: ./auth-service
ports:
- "8081:8081"
networks:
- app-network
environment:
- SPRING_PROFILES_ACTIVE=docker
product-service:
build:
context: ./product-service
ports:
- "8082:8082"
networks:
- app-network
environment:
- SPRING_PROFILES_ACTIVE=docker
order-service:
build:
context: ./order-service
ports:
- "8083:8083"
networks:
- app-network
environment:
- SPRING_PROFILES_ACTIVE=docker
# eureka-server:
# image: springcloud/eureka-server
# ports:
# - "8761:8761"
# networks:
# - app-network
# environment:
# - eureka.client.registerWithEureka=false
# - eureka.client.fetchRegistry=false
networks:
app-network:
driver: bridge