-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
109 lines (109 loc) · 2.34 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
version: '3.4'
services:
nginx:
build:
context: docker/nginx
# The Dockerfile builds on the base Nginx image but adds configuration, letsencrypt integration etc
ports:
- "80:80"
- "443:443"
volumes:
- /mnt/data/lagen/data:/usr/share/nginx/html:ro
environment:
- "DOMAIN=lagen.nu"
depends_on:
- ferenda
- mediawiki
- matomo
restart: always
logging:
options:
max-size: "10m"
max-file: "10"
ferenda:
build:
context: .
volumes:
- /mnt/data/lagen:/usr/share/site
- .:/usr/share/ferenda
- ./lagen/nu/res/patches:/usr/share/lagen/nu/res/patches
restart: always
depends_on:
- elasticsearch
- fuseki
stdin_open: true
logging:
options:
max-size: "10m"
max-file: "10"
elasticsearch:
image: elasticsearch:7.7.1
volumes:
- /mnt/data/elasticsearch:/usr/share/elasticsearch/data
environment:
- "discovery.type=single-node"
- "ES_JAVA_OPTS=-Xms8g -Xmx8g"
restart: always
logging:
options:
max-size: "10m"
max-file: "10"
fuseki:
# image: stain/jena-fuseki
build:
context: docker/fuseki
volumes:
- fuseki:/fuseki
environment:
- "JVM_ARGS=-Xmx2g"
- "FUSEKI_DATASET_1=lagen"
restart: always
logging:
options:
max-size: "10m"
max-file: "10"
mediawiki:
build:
context: docker/mediawiki
volumes:
- /mnt/data/mediawiki/db:/var/www/data
- /mnt/data/mediawiki/images:/var/www/html/w/images
restart: always
logging:
options:
max-size: "10m"
max-file: "10"
db:
image: mariadb
command: --max-allowed-packet=64MB
volumes:
- db:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=ncfeGpSR63xmnyTa
restart: always
logging:
options:
max-size: "10m"
max-file: "10"
matomo:
image: matomo
volumes:
- matomo:/var/www/html
environment:
- MATOMO_DATABASE_HOST=db
- MYSQL_PASSWORD=ncfeGpSR63xmnyTa
- MYSQL_DATABASE=matomo
- MYSQL_USER=root
ports:
- 8123:80
restart: always
logging:
options:
max-size: "10m"
max-file: "10"
volumes:
db:
matomo:
fuseki:
elasticsearch: