2020-04-28 14:05:35 +02:00
|
|
|
version: '2.1'
|
2020-03-16 14:20:36 +01:00
|
|
|
services:
|
|
|
|
ds:
|
|
|
|
container_name: ds
|
2020-04-28 14:05:35 +02:00
|
|
|
build:
|
|
|
|
context: ../.
|
2020-03-16 14:20:36 +01:00
|
|
|
depends_on:
|
2020-04-28 14:05:35 +02:00
|
|
|
- onlyoffice-mariadb
|
2020-03-16 14:20:36 +01:00
|
|
|
environment:
|
2020-04-28 14:05:35 +02:00
|
|
|
- DB_TYPE=${DB_TYPE:-mysql}
|
|
|
|
- DB_HOST=${DB_HOST:-onlyoffice-mariadb}
|
|
|
|
- DB_PORT=${DB_PORT:-3306}
|
|
|
|
- DB_NAME=${DB_NAME:-onlyoffice}
|
|
|
|
- DB_USER=${DB_USER:-onlyoffice}
|
|
|
|
- DB_PWD=${DB_PWD:-onlyoffice}
|
2020-03-16 14:20:36 +01:00
|
|
|
stdin_open: true
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- '80:80'
|
|
|
|
|
2020-04-28 14:05:35 +02:00
|
|
|
onlyoffice-mariadb:
|
|
|
|
container_name: onlyoffice-mariadb
|
2020-09-10 15:57:21 +02:00
|
|
|
image: mariadb:${MARIADB_VERSION:-10.5}
|
2020-03-16 14:20:36 +01:00
|
|
|
environment:
|
2020-04-28 14:05:35 +02:00
|
|
|
- MYSQL_DATABASE=${MYSQL_DATABASE:-onlyoffice}
|
|
|
|
- MYSQL_USER=${MYSQL_USER:-onlyoffice}
|
|
|
|
- MYSQL_PASSWORD=${MYSQL_PASSWORD:-onlyoffice}
|
|
|
|
- MYSQL_ALLOW_EMPTY_PASSWORD=${MYSQL_ALLOW_EMPTY_PASSWORD:-yes}
|
2020-03-16 14:20:36 +01:00
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- mysql_data:/var/lib/mysql
|
|
|
|
expose:
|
|
|
|
- '3306'
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
mysql_data:
|