-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
36 lines (36 loc) · 983 Bytes
/
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
webapp:
container_name: webapp
restart: always
dns: 8.8.8.8
ports:
- "8080:8080"
build: webapp
links:
- weather-service
external_links:
- eureka-server
- config-server
- logs
environment:
EUREKA_INSTANCE_HOSTNAME: webapp
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka-server:8761/eureka/
SPRING_CLOUD_CONFIG_DISCOVERY_ENABLED: true
SPRING_CLOUD_CONFIG_DISCOVERY_SERVICEID: config-server
SPRING_PROFILES_ACTIVE: syslog
weather-service:
container_name: weather-service
restart: always
dns: 8.8.8.8
ports:
- "8081:8081"
build: weather-service
external_links:
- eureka-server
- config-server
- logs
environment:
EUREKA_INSTANCE_HOSTNAME: weather-service
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: http://eureka-server:8761/eureka/
SPRING_CLOUD_CONFIG_DISCOVERY_ENABLED: true
SPRING_CLOUD_CONFIG_DISCOVERY_SERVICEID: config-server
SPRING_PROFILES_ACTIVE: syslog