2020-04-28 12:05:35 +00:00
|
|
|
version: '2.1'
|
2019-10-29 09:42:43 +00:00
|
|
|
services:
|
|
|
|
onlyoffice-documentserver:
|
|
|
|
container_name: onlyoffice-documentserver
|
2020-04-28 12:05:35 +00:00
|
|
|
build:
|
|
|
|
context: ../.
|
2019-10-29 09:42:43 +00:00
|
|
|
depends_on:
|
|
|
|
- onlyoffice-mysql
|
|
|
|
environment:
|
2020-04-28 12:05:35 +00:00
|
|
|
- DB_TYPE=${DB_TYPE:-mysql}
|
|
|
|
- DB_HOST=${DB_HOST:-onlyoffice-mysql}
|
|
|
|
- DB_PORT=${DB_PORT:-3306}
|
|
|
|
- DB_NAME=${DB_NAME:-onlyoffice}
|
|
|
|
- DB_USER=${DB_USER:-onlyoffice}
|
|
|
|
- DB_PWD=${DB_PWD:-onlyoffice}
|
2019-10-29 09:42:43 +00:00
|
|
|
stdin_open: true
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- '80:80'
|
|
|
|
|
|
|
|
onlyoffice-mysql:
|
|
|
|
container_name: onlyoffice-mysql
|
2020-09-10 13:57:21 +00:00
|
|
|
image: mysql:${MYSQL_VERSION:-5.7}
|
|
|
|
command: --default-authentication-plugin=mysql_native_password
|
2019-10-29 09:42:43 +00:00
|
|
|
environment:
|
2020-04-28 12:05:35 +00: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}
|
2019-10-29 09:42:43 +00:00
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- mysql_data:/var/lib/mysql
|
|
|
|
expose:
|
|
|
|
- '3306'
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
mysql_data:
|