-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (51 loc) · 1.39 KB
/
docker-compose.yml
File metadata and controls
55 lines (51 loc) · 1.39 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
version: '2'
services:
consul-server-bootstrap:
image: consul:1.1.0
command: "agent -server -bootstrap-expect 3 -ui -client 0.0.0.0"
ports:
- "8400:8400"
- "8500:8500"
- "8600:8600"
environment:
CONSUL_UI_BETA: "true"
consul-1:
image: consul:1.1.0
command: "agent -server -retry-join consul-server-bootstrap -client 0.0.0.0"
expose:
- "8400"
- "8500"
- "8600"
depends_on:
- consul-server-bootstrap
consul-2:
image: consul:1.1.0
command: "agent -server -retry-join consul-server-bootstrap -client 0.0.0.0"
expose:
- "8400"
- "8500"
- "8600"
depends_on:
- consul-server-bootstrap
consul-3:
image: consul:1.1.0
command: "agent -server -retry-join consul-server-bootstrap -client 0.0.0.0"
expose:
- "8400"
- "8500"
- "8600"
depends_on:
- consul-server-bootstrap
service-1:
image: openjdk:8-jre-alpine
volumes:
- ./service_1/build/libs/service_1-0.0.1-SNAPSHOT.jar:/app.jar
command: java -XX:MaxRAM=300M -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -jar /app.jar --spring.profiles.active=docker --server.port=8080
environment:
CONSUL_HOST: consul-server-bootstrap
CONSUL_PORT: 8500
ports:
- "8080:8080"
# - "5005:5005"
depends_on:
- consul-server-bootstrap