Files
fet2020/docker-compose.test.yml
2022-12-31 14:57:43 +01:00

102 lines
2.5 KiB
YAML

version: "2"
services:
mysql:
image: mariadb:10.7
container_name: test_mysql
networks:
- testfet
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:10.7
container_name: test_mysql_etherpad
networks:
- testfet
environment:
MYSQL_DATABASE: etherpaddb:10.7
MYSQL_USER: user
MYSQL_PASSWORD: "hgu"
MYSQL_COLLATION: utf8_general_ci
MYSQL_CHARSET: utf8
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost"]
timeout: 20s
retries: 20
volumes:
#- ep-mysql-volume:/var/lib/mysql
- /srv/initdb/etherpad:/docker-entrypoint-initdb.d/
etherpad:
image: etherpad/etherpad:1.8.17
container_name: test_etherpad
networks:
- testfet
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_healthy"
volumes:
- /srv/APIKEY.txt:/opt/etherpad-lite/APIKEY.txt
restart: unless-stopped
# - ./deployment/mysql.cnf:/etc/mysql/conf.d
healthcheck:
test: ["etherpad-healthcheck"]
timeout: 30s
interval: 30s
retries: 30
fet2020:
image: docker.fet.at/fet2020django
container_name: test_fet2020
networks:
- testfet
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_healthy
ports:
- "8005:8080"
healthcheck:
test: "python3 manage.py check --database default"
timeout: 20s
retries: 20
volumes:
- /srv/APIKEY.txt:/app/etherpad/APIKEY.txt
- /srv/files:/app/files
restart: unless-stopped
volumes:
ep-mysql-volume:
driver: local
mysql-volume:
driver: local
networks:
testfet:
name: testfet