-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
40 lines (38 loc) · 1.18 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
services:
devo-ng-relay:
image: devoinc/devo-ng-relay:${DEVO_NG_RELAY_VERSION}
container_name: devo-ng-relay
ports:
# reserved ports mapping
- 12996-12998:12996-12998/tcp
- 12999:12999/udp
- 13000-13002:13000-13002/tcp
- 13000-13002:13000-13002/udp
# user-defined rules port mapping
- ${TCP_PORT_RANGE:-13003-13020}:${TCP_PORT_RANGE:-13003-13020}/tcp
- ${UDP_PORT_RANGE:-13003-13020}:${UDP_PORT_RANGE:-13003-13020}/udp
environment:
MADURO_CONF: /opt/devo/ng-relay/conf
ROOT_LOG_LEVEL: ${LOG_LEVEL:-info}
JAVA_OPTS: "-Dfile.encoding=UTF-8 ${JAVA_OPTS}"
volumes:
- conf:/opt/devo/ng-relay/conf
- ./buffer:/var/logt/buffer
- ./logs:/var/logt/local
restart: always
devo-ng-relay-cli:
image: devoinc/devo-ng-relay-cli:${DEVO_NG_RELAY_CLI_VERSION}
container_name: devo-ng-relay-cli
environment:
host: devo-ng-relay
entrypoint: [ "/bin/sh", "-c",
"sleep 5; exec java -jar /opt/devo/devo-ng-relay-cli.jar --host=$$host" ]
depends_on:
- devo-ng-relay
volumes:
conf:
driver: local
driver_opts:
type: none
o: bind
device: '${PWD:-.}/conf'