This repository has been archived by the owner on Jun 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
96 lines (91 loc) · 2.65 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
version: '3'
services:
config-service:
container_name: config-service
build:
context: ./config-service
image: config-service:latest
expose:
- 8888
networks:
- spring-cloud-network
logging:
driver: json-file
eureka-service:
container_name: eureka-service
build:
context: ./eureka-service
image: eureka-service:latest
entrypoint: /opt/spring-cloud-samples/bin/eureka-entrypoint.sh
expose:
- 8761
ports:
- 8761:8761
environment:
- "SPRING_CLOUD_CONFIG_URI=http://config-service:8888"
networks:
- spring-cloud-network
depends_on:
- config-service
logging:
driver: json-file
greeting-instance:
# container_name: greeting-instance
build:
context: ./greeting-instance
image: greeting-instance:latest
entrypoint: /opt/spring-cloud-samples/bin/greeting-entrypoint.sh
expose:
- 8081
#ports:
# - 8081:8081
environment:
- "SPRING_CLOUD_CONFIG_URI=http://config-service:8888"
- "SPRING_PROFILES_ACTIVE=docker"
networks:
- spring-cloud-network
depends_on:
- eureka-service
logging:
driver: json-file
gateway-service:
container_name: gateway-service
build:
context: ./gateway-service
image: gateway-service:latest
entrypoint: /opt/spring-cloud-samples/bin/gateway-entrypoint.sh
ports:
- 8080:8080
expose:
- 8080
environment:
- "SPRING_CLOUD_CONFIG_URI=http://config-service:8888"
- "SPRING_PROFILES_ACTIVE=docker"
networks:
- spring-cloud-network
depends_on:
- eureka-service
logging:
driver: json-file
admin-server:
container_name: admin-server
build:
context: ./admin-server
image: admin-server:latest
entrypoint: /opt/spring-cloud-samples/bin/admin-entrypoint.sh
ports:
- 8500:8500
expose:
- 8500
environment:
- "SPRING_CLOUD_CONFIG_URI=http://config-service:8888"
- "SPRING_PROFILES_ACTIVE=secure, docker"
networks:
- spring-cloud-network
depends_on:
- eureka-service
logging:
driver: json-file
networks:
spring-cloud-network:
driver: bridge