2016-07-07 14:13:26 +00:00
|
|
|
version: '2'
|
|
|
|
services:
|
2020-03-27 15:44:56 +00:00
|
|
|
onlyoffice-documentserver:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
container_name: onlyoffice-documentserver
|
|
|
|
depends_on:
|
|
|
|
- onlyoffice-postgresql
|
|
|
|
- onlyoffice-rabbitmq
|
2016-07-07 14:13:26 +00:00
|
|
|
environment:
|
2019-10-29 09:42:43 +00:00
|
|
|
- DB_TYPE=postgres
|
|
|
|
- DB_HOST=onlyoffice-postgresql
|
|
|
|
- DB_PORT=5432
|
|
|
|
- DB_NAME=onlyoffice
|
|
|
|
- DB_USER=onlyoffice
|
2019-12-23 09:27:47 +00:00
|
|
|
- AMQP_URI=amqp://guest:guest@onlyoffice-rabbitmq
|
2019-09-24 09:55:24 +00:00
|
|
|
# Uncomment strings below to enable the JSON Web Token validation.
|
|
|
|
#- JWT_ENABLED=true
|
|
|
|
#- JWT_SECRET=secret
|
|
|
|
#- JWT_HEADER=Authorization
|
2019-11-27 08:35:08 +00:00
|
|
|
#- JWT_IN_BODY=true
|
2020-03-27 15:44:56 +00:00
|
|
|
ports:
|
|
|
|
- '80:80'
|
|
|
|
- '443:443'
|
2016-07-11 08:47:22 +00:00
|
|
|
stdin_open: true
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- /var/www/onlyoffice/Data
|
|
|
|
- /var/log/onlyoffice
|
|
|
|
- /var/lib/onlyoffice/documentserver/App_Data/cache/files
|
|
|
|
- /var/www/onlyoffice/documentserver-example/public/files
|
|
|
|
- /usr/share/fonts
|
|
|
|
|
2016-07-07 14:13:26 +00:00
|
|
|
onlyoffice-rabbitmq:
|
|
|
|
container_name: onlyoffice-rabbitmq
|
|
|
|
image: rabbitmq
|
|
|
|
restart: always
|
|
|
|
expose:
|
|
|
|
- '5672'
|
|
|
|
|
2016-08-25 16:52:14 +00:00
|
|
|
onlyoffice-postgresql:
|
|
|
|
container_name: onlyoffice-postgresql
|
|
|
|
image: postgres:9.5
|
2016-07-07 14:13:26 +00:00
|
|
|
environment:
|
2016-08-25 16:52:14 +00:00
|
|
|
- POSTGRES_DB=onlyoffice
|
|
|
|
- POSTGRES_USER=onlyoffice
|
2020-03-25 09:19:47 +00:00
|
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
2016-07-07 14:13:26 +00:00
|
|
|
restart: always
|
|
|
|
expose:
|
2016-08-25 16:52:14 +00:00
|
|
|
- '5432'
|
2016-07-07 14:13:26 +00:00
|
|
|
volumes:
|
2016-08-25 16:52:14 +00:00
|
|
|
- postgresql_data:/var/lib/postgresql
|
2016-07-07 14:13:26 +00:00
|
|
|
|
|
|
|
volumes:
|
2016-08-25 16:52:14 +00:00
|
|
|
postgresql_data:
|