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-postgresql
|
|
|
|
environment:
|
2020-04-28 12:05:35 +00:00
|
|
|
- DB_TYPE=${DB_TYPE:-postgres}
|
|
|
|
- DB_HOST=${DB_HOST:-onlyoffice-postgresql}
|
|
|
|
- DB_PORT=${DB_PORT:-5432}
|
|
|
|
- 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-postgresql:
|
|
|
|
container_name: onlyoffice-postgresql
|
|
|
|
image: postgres:9.5
|
|
|
|
environment:
|
2020-04-28 12:05:35 +00:00
|
|
|
- POSTGRES_DB=${POSTGRES_DB:-onlyoffice}
|
|
|
|
- POSTGRES_USER=${POSTGRES_USER:-onlyoffice}
|
|
|
|
- POSTGRES_HOST_AUTH_METHOD=${POSTGRES_HOST_AUTH_METHOD:-trust}
|
2019-10-29 09:42:43 +00:00
|
|
|
restart: always
|
|
|
|
expose:
|
|
|
|
- '5432'
|
|
|
|
volumes:
|
|
|
|
- postgresql_data:/var/lib/postgresql
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
postgresql_data:
|