Add mariadb test

This commit is contained in:
Alexey Golubev 2020-03-16 16:20:36 +03:00
parent e361537d32
commit 37c058d281
2 changed files with 41 additions and 0 deletions

View file

@ -28,6 +28,12 @@ env:
DB_HOST: onlyoffice-mysql DB_HOST: onlyoffice-mysql
DB_PORT: 3306 DB_PORT: 3306
# mariadb
- config: mariadb.yml
DB_TYPE: mysql
DB_HOST: db
DB_PORT: 3306
# activemq # activemq
- config: activemq.yml - config: activemq.yml
AMQP_TYPE: activemq AMQP_TYPE: activemq

35
tests/mariadb.yml Normal file
View file

@ -0,0 +1,35 @@
version: '2'
services:
ds:
container_name: ds
image: onlyoffice/4testing-documentserver-ie:latest
depends_on:
- db
environment:
- DB_TYPE
- DB_HOST
- DB_PORT
- DB_NAME
- DB_USER
- DB_PWD
stdin_open: true
restart: always
ports:
- '80:80'
db:
container_name: db
image: mariadb:10.5
environment:
- MYSQL_DATABASE
- MYSQL_USER
- MYSQL_PASSWORD
- MYSQL_ALLOW_EMPTY_PASSWORD
restart: always
volumes:
- mysql_data:/var/lib/mysql
expose:
- '3306'
volumes:
mysql_data: