83 lines
2.1 KiB
YAML
83 lines
2.1 KiB
YAML
version: "2"
|
|
services:
|
|
mysql:
|
|
image: mariadb
|
|
container_name: test_mysql
|
|
ports:
|
|
- "3306:3306"
|
|
environment:
|
|
MYSQL_DATABASE: fet2020db
|
|
MYSQL_USER: user
|
|
MYSQL_PASSWORD: hgu
|
|
MYSQL_COLLATION: utf8_general_ci
|
|
MYSQL_CHARSET: utf8
|
|
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
|
|
volumes:
|
|
#- mysql-volume:/var/lib/mysql
|
|
- /srv/initdb/mysql:/docker-entrypoint-initdb.d/
|
|
healthcheck:
|
|
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
|
|
timeout: 20s
|
|
retries: 20
|
|
etherpadsql:
|
|
image: mariadb
|
|
container_name: test_mysql_etherpad
|
|
environment:
|
|
MYSQL_DATABASE: etherpaddb
|
|
MYSQL_USER: user
|
|
MYSQL_PASSWORD: "hgu"
|
|
MYSQL_COLLATION: utf8_general_ci
|
|
MYSQL_CHARSET: utf8
|
|
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
|
|
volumes:
|
|
#- ep-mysql-volume:/var/lib/mysql
|
|
- /srv/initdb/etherpad:/docker-entrypoint-initdb.d/
|
|
etherpad:
|
|
image: etherpad/etherpad
|
|
container_name: test_etherpad
|
|
environment:
|
|
DB_TYPE: mysql
|
|
DB_HOST: etherpadsql
|
|
DB_PORT: 3306
|
|
DB_NAME: etherpaddb
|
|
DB_USER: root
|
|
DB_PASS: ""
|
|
DB_CHARSET: utf8
|
|
TRUST_PROXY: "true"
|
|
REQUIRE_SESSION: "true"
|
|
depends_on:
|
|
etherpadsql:
|
|
condition: "service_started"
|
|
volumes:
|
|
- /srv/APIKEY.txt:/opt/etherpad-lite/APIKEY.txt
|
|
# - ./deployment/mysql.cnf:/etc/mysql/conf.d
|
|
# healthcheck:
|
|
# test: curl --fail http://localhost:9001 || exit 1
|
|
# timeout: 20s
|
|
# retries: 20
|
|
fet2020:
|
|
image: docker.fet.at/fet2020django
|
|
container_name: test_fet2020
|
|
environment:
|
|
HOST_NAME: "test.fet.at"
|
|
DEBUG: "False"
|
|
SECRET_KEY: "sadfreigjopi4qgjpjrp"
|
|
MYSQL_USER: "user"
|
|
MYSQL_PASSWORD: "hgu"
|
|
ETHERPAD_GROUP: "g.snlbqn7S6ksRbom3"
|
|
depends_on:
|
|
mysql:
|
|
condition: service_healthy
|
|
etherpad:
|
|
condition: service_started
|
|
ports:
|
|
- "8005:8080"
|
|
volumes:
|
|
- /srv/APIKEY.txt:/app/etherpad/APIKEY.txt
|
|
- /srv/files:/app/files
|
|
volumes:
|
|
ep-mysql-volume:
|
|
driver: local
|
|
mysql-volume:
|
|
driver: local
|