-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
58 lines (54 loc) · 1.82 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
55
56
57
58
version: '3'
services:
db:
image: postgres
restart: always
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASS}
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- ./data/pgdata:/var/lib/postgresql/data
networks:
- openolat
olat:
image: tomcat:9-jdk11
restart: always
environment:
- CATALINA_OPTS=-Ddb.host=${DB_HOST} -Ddb.port=${DB_PORT} -Ddb.name=${DB_NAME} -Ddb.user=${DB_USER} -Ddb.pass=${DB_PASS} -Duser.timezone=Europe/Berlin -Dspring.profiles.active=myprofile -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=.
volumes:
- ./openolat/openolat_${OLAT_VERSION}:/opt/openolat/webapp
- ./tomcat/log4j2.xml:/opt/openolat/webapp/WEB-INF/classes/log4j2.xml
- ./themes/impavit:/opt/openolat/webapp/static/themes/impavit
- ./tomcat/server.xml:/usr/local/tomcat/conf/server.xml
- ./tomcat/context.xml:/usr/local/tomcat/conf/Catalina/localhost/ROOT.xml
- ./tomcat/olat.local.properties:/usr/local/tomcat/lib/olat.local.properties
- ./data/olatdata:/opt/openolat/olatdata
- ./data/logs:/opt/openolat/logs
networks:
- openolat
ports:
- 127.0.0.1:${OLAT_PORT}:8088
depends_on:
- db
athena:
image: arachnysdocker/athenapdf-service
restart: always
security_opt:
- seccomp:unconfined
environment:
WEAVER_AUTH_KEY: ${ATHENA_SECRET}
WEAVER_ATHENA_CMD: athenapdf -S --ignore-gpu-blacklist
WEAVER_MAX_WORKERS: 10
WEAVER_MAX_CONVERSION_QUEUE: 50
WEAVER_WORKER_TIMEOUT: 90
WEAVER_CONVERSION_FALLBACK: "false"
GIN_MODE: debug
networks:
- openolat
ports:
- 127.0.0.1:${ATHENA_PORT}:8080
networks:
openolat:
driver: bridge