-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
25 lines (25 loc) · 1.1 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
version: '2'
services:
database:
image: $DATABASE_IMAGE
ports:
- 1521
- 3306
environment:
- MYSQL_ROOT_PASSWORD=
- MYSQL_ALLOW_EMPTY_PASSWORD="yes"
- MYSQL_USER=sakai
- MYSQL_PASSWORD=sakai
- MYSQL_DATABASE=sakai
command: --character-set-server=utf8
sakai:
image: $SAKAI_IMAGE
ports:
- 8080
links:
- database
environment:
- JAVA_OPTS=-server -Xms512m -Xmx1280m -XX:MaxMetaspaceSize=512m -XX:NewSize=192m -XX:MaxNewSize=384m -Doracle.jdbc.timezoneAsRegion=false -Djava.awt.headless=true -Dhttp.agent=Sakai -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false -Dsun.lang.ClassLoader.allowArraySyntax=true -Dfile.encoding=UTF-8
- CATALINA_OPTS=-Dsakai.demo=true -Duser.language=es -Duser.region=ES -Dsakai.security=/usr/local/tomcat-base/security-$DATABASE_DRIVER -Dsakai.home=/usr/local/tomcat-base/sakai -Dsakai.components.root=/usr/local/tomcat-base/components
- CATALINA_BASE=/usr/local/tomcat-base
command: ["/usr/local/tomcat-base/bin/wait-before.sh", "$DATABASE_DRIVER", "catalina.sh", "run"]