-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (67 loc) · 1.44 KB
/
docker-compose.yml
File metadata and controls
74 lines (67 loc) · 1.44 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
version: '3.8'
services:
eureka:
build:
context: ./eureka-service
ports:
- "8761:8761"
networks:
- backend
auth-service:
build:
context: ./auth-service
depends_on:
- eureka
ports:
- "8081:8081"
environment:
- EUREKA_CLIENT_SERVICE_URL=http://eureka:8761/eureka/
volumes:
- ./wait-for-eureka.sh:/usr/local/bin/wait-for-eureka.sh
networks:
- backend
product-service:
build:
context: ./product-service
depends_on:
- eureka
ports:
- "8082:8082"
environment:
- EUREKA_CLIENT_SERVICE_URL=http://eureka:8761/eureka/
volumes:
- ./wait-for-eureka.sh:/usr/local/bin/wait-for-eureka.sh
networks:
- backend
order-service:
build:
context: ./order-service
depends_on:
- eureka
ports:
- "8083:8083"
environment:
- EUREKA_CLIENT_SERVICE_URL=http://eureka:8761/eureka/
volumes:
- ./wait-for-eureka.sh:/usr/local/bin/wait-for-eureka.sh
networks:
- backend
gateway-service:
build:
context: ./gateway-service
depends_on:
- eureka
- auth-service
- product-service
- order-service
ports:
- "8080:8080"
environment:
- EUREKA_CLIENT_SERVICE_URL=http://eureka:8761/eureka/
volumes:
- ./wait-for-eureka.sh:/usr/local/bin/wait-for-eureka.sh
networks:
- backend
networks:
backend:
driver: bridge