-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (42 loc) · 1.18 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
services:
webapp:
image: tomcat:10.1-jdk17
restart: always
volumes:
- "./target/Learnweb.war:/usr/local/tomcat/webapps/ROOT.war"
- "./data/files:/mnt/files"
ports:
- "7010:8080"
depends_on:
- mariadb
- solr
environment:
TZ: "Europe/Berlin"
LEARNWEB_FILE_MANAGER_FOLDER: "/mnt/files"
LEARNWEB_SOLR_SERVER_URL: "http://solr:8983/solr/learnweb"
LEARNWEB_MYSQL_URL: "jdbc:mariadb://mariadb:3306/learnweb"
LEARNWEB_MYSQL_USER: "learnweb"
LEARNWEB_MYSQL_PASSWORD: "cm&dY@FSM7sCtSxZ"
mariadb:
image: mariadb:10.11
restart: always
ports:
- "7006:3306"
volumes:
- "./data/mariadb:/var/lib/mysql"
environment:
TZ: "Europe/Berlin"
MARIADB_AUTO_UPGRADE: "yes"
MARIADB_RANDOM_ROOT_PASSWORD: "yes"
MARIADB_DATABASE: "learnweb"
MARIADB_USER: "learnweb"
MARIADB_PASSWORD: "cm&dY@FSM7sCtSxZ"
solr:
image: solr:9
restart: always
ports:
- "7003:8983"
volumes:
- "./src/main/conf/solr-setup.sh:/solr-setup.sh:ro"
- "./data/solr:/var/solr"
command: bash -e -c "precreate-core learnweb && source /solr-setup.sh && solr-foreground"