-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (78 loc) · 2.32 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
77
78
79
# Docker compose file for galahad client, server and proxy
services:
client:
image: instituutnederlandsetaal/galahad-client:${APP_VERSION}
build:
context: client
restart: unless-stopped
networks:
- proxy_network
deploy:
resources:
limits:
cpus: '0.50'
memory: 512M
reservations:
cpus: '0.25'
memory: 128M
server:
image: instituutnederlandsetaal/galahad-server:${APP_VERSION}
build:
context: server
restart: unless-stopped
volumes:
- user-corpora-volume:/data/corpora/custom
- preset-corpora-volume:/data/corpora/presets
- formats-volume:/data/formats
- taggers-volume:/data/taggers
- tagsets-volume:/data/tagsets
- admins-volume:/data/admins
networks:
- proxy_network
- taggers
deploy:
resources:
limits:
cpus: '2.00'
memory: 8G # should be higher that the java heap size
reservations:
cpus: '1.00'
memory: 2G
environment: # Otherwise container doesn't restart on OutOfMemory
- "JAVA_OPTS=-XX:+ExitOnOutOfMemoryError"
# Simple nginx reverse proxy to combine front- and backend
proxy:
image: instituutnederlandsetaal/galahad-proxy:${APP_VERSION}
build:
context: proxy
depends_on:
- client
- server
ports:
- "80:80"
restart: unless-stopped
networks:
- proxy_network
deploy:
resources:
limits:
cpus: '0.50'
memory: 256M
reservations:
cpus: '0.25'
memory: 128M
networks:
front:
driver: bridge
proxy_network:
driver: bridge
taggers:
external: true
name: $taggers_network
volumes:
user-corpora-volume:
preset-corpora-volume:
formats-volume:
taggers-volume:
tagsets-volume:
admins-volume: