-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
175 lines (166 loc) · 6.58 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
# EZStats docker-compose.yml
services:
ezstats-rp:
container_name: ezstats-rp
image: nginx:1.26.1
restart: unless-stopped
ports:
- "80:80"
volumes:
- ./reverse-proxy/default.conf:/etc/nginx/conf.d/default.conf
networks:
- default
mem_limit: ${EZSTATS_MEM_LIMIT}
memswap_limit: ${EZSTATS_MEMSWAP_LIMIT}
cpus: ${EZSTATS_CPU_LIMIT}
labels:
- "co.elastic.logs/enabled=true"
- "co.elastic.logs/processors.add_fields.target="
- "co.elastic.logs/processors.add_fields.fields.abes_appli=ezstats"
- "co.elastic.logs/processors.add_fields.fields.abes_middleware=ezstats-rp"
ezstats-ezpaarse:
container_name: ezstats-ezpaarse
image: ezpaarseproject/ezpaarse:3.10.2
environment:
# http_proxy: ${http_proxy}
# https_proxy: ${https_proxy}
# no_proxy: ${no_proxy}
NODE_ENV: "production"
EZPAARSE_MONGO_URL: "mongodb://ezstats-ezpaarse-db:27017/ezpaarse"
volumes:
- ./ezpaarse/platforms:/opt/ezpaarse/platforms
- ./ezpaarse/middlewares:/opt/ezpaarse/middlewares
- ./ezpaarse/resources:/opt/ezpaarse/resources
- ./ezpaarse/exclusions:/opt/ezpaarse/exclusions
- ./ezpaarse-init/config.local.json:/opt/ezpaarse/config.local.json
# Sert juste à copier au démarrage les middlewares /tmp/thesesfr[...]/index.js dans le répertoire middlewares (si ce dernier était vide)
- ./ezpaarse-init:/tmp
- ./ezpaarse-init/Makefile:/opt/ezpaarse/Makefile
mem_limit: ${EZSTATS_MEM_LIMIT}
memswap_limit: ${EZSTATS_MEMSWAP_LIMIT}
cpus: ${EZSTATS_CPU_LIMIT}
ports:
- 59599:59599
depends_on:
- ezstats-ezpaarse-db
restart: unless-stopped
labels:
- "co.elastic.logs/enabled=true"
- "co.elastic.logs/processors.add_fields.target="
- "co.elastic.logs/processors.add_fields.fields.abes_appli=ezstats"
- "co.elastic.logs/processors.add_fields.fields.abes_middleware=ezstats-ezpaarse"
ezstats-ezpaarse-db:
container_name: ezstats-ezpaarse-db
image: mongo:3.6.23
mem_limit: ${EZSTATS_MEM_LIMIT}
memswap_limit: ${EZSTATS_MEMSWAP_LIMIT}
cpus: ${EZSTATS_CPU_LIMIT}
# ports:
# - 27017:27017
restart: unless-stopped
labels:
- "co.elastic.logs/enabled=true"
- "co.elastic.logs/processors.add_fields.target="
- "co.elastic.logs/processors.add_fields.fields.abes_appli=ezstats"
- "co.elastic.logs/processors.add_fields.fields.abes_middleware=ezstats-ezpaarse-db"
ezstats-webdav:
container_name: ezstats-webdav
image: abesesr/ezstats:develop-ezstats-webdav
mem_limit: ${EZSTATS_MEM_LIMIT}
memswap_limit: ${EZSTATS_MEMSWAP_LIMIT}
cpus: ${EZSTATS_CPU_LIMIT}
ports:
- "58080:80"
volumes:
- ezstats-logs:/var/lib/dav
# Utilisation des variables USERNAME et PASSWORD pour avoir un user admin.
# Sinon, on peut utiliser la commande : htdigest user.passwd WebDAV "user" pour définir d'autres utilisateurs
- ./webdav/user.passwd:/user.passwd
environment:
USERNAME: ${EZSTATS_WEBDAV_USERNAME}
PASSWORD: ${EZSTATS_WEBDAV_PASSWORD}
restart: unless-stopped
labels:
- "co.elastic.logs/enabled=true"
- "co.elastic.logs/processors.add_fields.target="
- "co.elastic.logs/processors.add_fields.fields.abes_appli=ezstats"
- "co.elastic.logs/processors.add_fields.fields.abes_middleware=ezstats-webdav"
# pour que les mises à jour de cette image soient auto-déployées par watchtower
- "com.centurylinklabs.watchtower.scope=ezstats-watchtower-scope"
ezstats-watchtower:
image: containrrr/watchtower:1.4.0
container_name: ezstats-watchtower
restart: unless-stopped
networks:
- default
mem_limit: ${EZSTATS_MEM_LIMIT}
memswap_limit: ${EZSTATS_MEMSWAP_LIMIT}
cpus: ${EZSTATS_CPU_LIMIT}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
WATCHTOWER_CLEANUP: "true"
WATCHTOWER_POLL_INTERVAL: 60
WATCHTOWER_DEBUG: "false"
WATCHTOWER_NO_STARTUP_MESSAGE: "true"
WATCHTOWER_WARN_ON_HEAD_FAILURE: "never"
WATCHTOWER_RUN_ONCE: ${EZSTATS_WATCHTOWER_RUN_ONCE}
#WATCHTOWER_NOTIFICATIONS: "slack"
#WATCHTOWER_NOTIFICATION_SLACK_HOOK_URL: ${EZSTATS_WATCHTOWER_NOTIFICATION_SLACK_HOOK_URL}
#WATCHTOWER_NOTIFICATION_SLACK_IDENTIFIER: ${EZSTATS_WATCHTOWER_NOTIFICATION_SLACK_IDENTIFIER}
#WATCHTOWER_NOTIFICATION_SLACK_CHANNEL: "#notif-ezstats"
WATCHTOWER_SCOPE: "ezstats-watchtower-scope"
labels:
- "com.centurylinklabs.watchtower.scope=ezstats-watchtower-scope"
ezstats-batch-theses:
container_name: ezstats-batch-theses
image: abesesr/ezstats:develop-ezstats-batch-theses
mem_limit: ${EZSTATS_MEM_LIMIT}
memswap_limit: ${EZSTATS_MEMSWAP_LIMIT}
cpus: ${EZSTATS_CPU_LIMIT}
environment:
EZMESURE_URL: ${EZMESURE_URL}
EZMESURE_TOKEN: ${EZMESURE_TOKEN}
EZMESURE_THESESFR_INDEX: ${EZMESURE_THESESFR_INDEX}
volumes:
- ezstats-logs:/home/node/logtheses
depends_on:
- ezstats-ezpaarse
restart: unless-stopped
labels:
- "co.elastic.logs/enabled=true"
- "co.elastic.logs/processors.add_fields.target="
- "co.elastic.logs/processors.add_fields.fields.abes_appli=ezstats"
- "co.elastic.logs/processors.add_fields.fields.abes_middleware=ezstats-batch-theses"
# pour que les mises à jour de cette image soient auto-déployées par watchtower
- "com.centurylinklabs.watchtower.scope=ezstats-watchtower-scope"
ezstats-batch-logs:
container_name: ezstats-batch-logs
image: abesesr/ezstats:develop-ezstats-batch-logs
mem_limit: ${EZSTATS_MEM_LIMIT}
memswap_limit: ${EZSTATS_MEMSWAP_LIMIT}
cpus: ${EZSTATS_CPU_LIMIT}
volumes:
- ezstats-logs:/home/node/logtheses/logs
- ezstats-logstash:/home/node/logstash
restart: unless-stopped
labels:
- "co.elastic.logs/enabled=true"
- "co.elastic.logs/processors.add_fields.target="
- "co.elastic.logs/processors.add_fields.fields.abes_appli=ezstats"
- "co.elastic.logs/processors.add_fields.fields.abes_middleware=ezstats-batch-logs"
# pour que les mises à jour de cette image soient auto-déployées par watchtower
- "com.centurylinklabs.watchtower.scope=ezstats-watchtower-scope"
volumes:
ezstats-logs:
driver: local
driver_opts:
type: ${EZSTATS_VOLUME_TYPE}
o: ${EZSTATS_VOLUME_O}
device: ${EZSTATS_VOLUME_DEVICE}
ezstats-logstash:
driver: local
driver_opts:
type: ${EZSTATS_LOGSTASH_VOLUME_TYPE}
o: ${EZSTATS_LOGSTASH_VOLUME_O}
device: ${EZSTATS_LOGSTASH_VOLUME_DEVICE}