-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
75 lines (70 loc) · 1.69 KB
/
Copy pathdocker-compose.yml
File metadata and controls
75 lines (70 loc) · 1.69 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
version: "3"
services:
config-svc:
build:
context: ./config-server
dockerfile: Dockerfile
container_name: config-svc
ports:
- "8888:8888"
environment:
- SPRING_PROFILES_ACTIVE=native
networks:
- micro_net
service_registry:
build:
context: ./service-registry
dockerfile: Dockerfile
container_name: service_registry
ports:
- "8761:8761"
networks:
- micro_net
department-service:
build:
context: ./dapartment-service
dockerfile: Dockerfile
container_name: department-service
ports:
- "8081:8081"
environment:
- EUREKA_SERVER_ADDRESS=http://service_registry:8761/eureka/
- CONFIG_SERVER_URL=http://config-svc:8888 # Updated Config Server URL
depends_on:
- config-svc
- service_registry
networks:
- micro_net
employee-service:
build:
context: ./employee-service
dockerfile: Dockerfile
container_name: employee-service
ports:
- "8082:8082"
environment:
- SPRING_CLOUD_CONFIG_URI=http://config-svc:8888
- EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://service_registry:8761/eureka/
depends_on:
- config-svc
- service_registry
networks:
- micro_net
api-gateway:
build:
context: ./api-gateway
dockerfile: Dockerfile
container_name: api-gateway
ports:
- "8060:8060"
environment:
- EUREKA_SERVER_ADDRESS=http://service_registry:8761/eureka/
- CONFIG_SERVER_URL=http://config-svc:8888 # Updated Config Server URL
depends_on:
- config-svc
- service_registry
networks:
- micro_net
networks:
micro_net:
driver: bridge