-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
76 lines (72 loc) · 1.7 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
version: '3.7'
services:
master:
build:
context: jacsstorage-masterweb/
args:
- TAG_JACS=master
networks:
jade_network:
aliases:
- master_node
expose:
- '8080'
ports:
- '9880:8080'
volumes:
- jadeconf:/etc/jadeconf.d
environment:
- JACSSTORAGE_CONFIG=/etc/jadeconf.d/jadeconf.properties
- JACSSTORAGE_LOG_CONFIG=/etc/jadeconf.d/logback-master.xml
command:
- '/app/jacsstorage-masterweb/bin/jacsstorage-masterweb'
- '-b'
- '0.0.0.0'
agent:
build:
context: jacsstorage-agentweb/
args:
- TAG_JACS=master
depends_on:
- master
networks:
jade_network:
aliases:
- agent_node
expose:
- '8080'
ports:
- '9881:8080'
volumes:
- jadeconf:/etc/jadeconf.d
environment:
- EXPOSED_AGENT_HOST
- EXPOSED_AGENT_PORT
- JACSSTORAGE_CONFIG=/etc/jadeconf.d/jadeconf.properties
- JACSSTORAGE_LOG_CONFIG=/etc/jadeconf.d/logback-agent.xml
command:
- '/app/jacsstorage-agentweb/bin/jacsstorage-agentweb'
- '-b'
- '0.0.0.0'
- '-publicPort'
- '${EXPOSED_AGENT_PORT-0}'
- '-masterURL'
- 'http://master_node:8080/jacsstorage/master_api/v1'
- '-DStorageAgent.InitialPingDelayInSeconds=10'
- '-DStorageAgent.StorageHost=${EXPOSED_AGENT_HOST-agent_node}'
- '-bootstrapStorageVolumes'
networks:
jade_network:
volumes:
jadeconf:
driver: local
driver_opts:
type: none
device: /DockerSharedVolumes/jadeconf
o: bind
jadedata:
driver: local
driver_opts:
type: none
device: /DockerSharedVolumes/jadedata
o: bind