-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (36 loc) · 1008 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (36 loc) · 1008 Bytes
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
consul:
command: -server -bootstrap -advertise 192.168.99.100
image: progrium/consul:latest
hostname: 192.168.99.100.xip.io
ports:
- "8300:8300"
- "8400:8400"
- "8500:8500"
- "8600:53/udp"
# environment:
# SERVICE_CHECK_SCRIPT: nc $SERVICE_IP $SERVICE_PORT | grep OK
# SERVICE_CHECK_TTL: 5s
registrator:
command: consul://consul:8500 -resync 5 -ttl-refresh 5
image: progrium/registrator:latest
links:
- consul
volumes:
- "/var/run/docker.sock:/tmp/docker.sock"
springbootadmin:
image: depot.enovation.nl/wharf/spring-boot-admin:latest
ports:
- "18080:8080"
- "8081"
environment:
CONSUL_HOST: 192.168.99.100
DISCOVERY_ENABLED: true
command: java -Djava.security.egd=file:/dev/./urandom -jar /app/spring-boot-admin.jar
helloworld:
build: spring-boot-helloworld-sample/.
ports:
- "8080"
- "8081"
environment:
SERVICE_TAGS: spring-boot-management
command: java -Djava.security.egd=file:/dev/./urandom -jar /app/application.jar