2020-04-28 15:05:35 +03:00
|
|
|
version: '2.1'
|
2019-10-29 12:42:43 +03:00
|
|
|
services:
|
|
|
|
onlyoffice-documentserver:
|
|
|
|
container_name: onlyoffice-documentserver
|
2020-04-28 15:05:35 +03:00
|
|
|
build:
|
|
|
|
context: ../.
|
2019-10-29 12:42:43 +03:00
|
|
|
depends_on:
|
|
|
|
- onlyoffice-postgresql
|
|
|
|
environment:
|
2020-04-28 15:05:35 +03: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 12:42:43 +03:00
|
|
|
stdin_open: true
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- '80:80'
|
|
|
|
|
|
|
|
onlyoffice-postgresql:
|
|
|
|
container_name: onlyoffice-postgresql
|
2023-11-29 16:33:41 +07:00
|
|
|
image: postgres:${POSTGRES_VERSION:-12}
|
2019-10-29 12:42:43 +03:00
|
|
|
environment:
|
2020-04-28 15:05:35 +03:00
|
|
|
- POSTGRES_DB=${POSTGRES_DB:-onlyoffice}
|
|
|
|
- POSTGRES_USER=${POSTGRES_USER:-onlyoffice}
|
|
|
|
- POSTGRES_HOST_AUTH_METHOD=${POSTGRES_HOST_AUTH_METHOD:-trust}
|
2019-10-29 12:42:43 +03:00
|
|
|
restart: always
|
|
|
|
expose:
|
|
|
|
- '5432'
|
|
|
|
volumes:
|
|
|
|
- postgresql_data:/var/lib/postgresql
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
postgresql_data:
|