-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
54 lines (54 loc) · 1.65 KB
/
docker-compose.yaml
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
# variables:
# VERSION: the VoyantServer release number (for prod service)
# BRANCH: the branch (master or dev) to use (for dev service)
# MEMORY: the amount of GBs of memory to allocate
# LOCALDIR: the name of the local dir to use as Voyant's data dir
#
# example:
# LOCALDIR=/mnt/d/VoyantData MEMORY=8 docker compose up local -d
services:
prod:
build:
args:
VERSION: ${VERSION:-2.6.17}
context: ./prod
restart: always
healthcheck: &healthcheck
test: curl -f http://localhost:8080/resources/ext/6.2.0/charts-all.css || exit 1
start_period: 300s
interval: 30s
timeout: 10s
retries: 5
ports: &ports
- 8080:8080
- 4000:4000
environment:
CATALINA_TMPDIR: /voyant-data
CATALINA_OPTS: "-Xmx${MEMORY:-45}g"
JAVA_OPTS: >-
-XX:+UseConcMarkSweepGC
-Dorg.voyanttools.server.storage=file-per-corpus
-Dorg.voyanttools.server.showservermessage=true
-javaagent:/glowroot/glowroot.jar
-Dglowroot.data.dir=/voyant-data/glowroot-data
volumes:
- ${LOCALDIR:-/voyant-data}/:/voyant-data
dev:
build:
args:
BRANCH: ${BRANCH:-dev}
context: ./dev
restart: always
healthcheck: *healthcheck
ports: *ports
environment:
CATALINA_TMPDIR: /voyant-data
CATALINA_OPTS: "-Xmx${MEMORY:-10}g"
JAVA_OPTS: >-
-XX:+UseConcMarkSweepGC
-Dorg.voyanttools.server.storage=file-per-corpus
-Dorg.voyanttools.server.showservermessage=true
-javaagent:/glowroot/glowroot.jar
-Dglowroot.data.dir=/voyant-data/glowroot-data
volumes:
- ${LOCALDIR:-/voyant-data}/:/voyant-data