Docker-DocumentServer/docker-compose.yml

57 lines
1.4 KiB
YAML
Raw Normal View History

version: '2'
services:
2020-03-27 18:44:56 +03:00
onlyoffice-documentserver:
build:
context: .
container_name: onlyoffice-documentserver
depends_on:
- onlyoffice-postgresql
- onlyoffice-rabbitmq
environment:
- DB_TYPE=postgres
- DB_HOST=onlyoffice-postgresql
- DB_PORT=5432
- DB_NAME=onlyoffice
- DB_USER=onlyoffice
2019-12-23 12:27:47 +03:00
- AMQP_URI=amqp://guest:guest@onlyoffice-rabbitmq
2019-09-24 12:55:24 +03:00
# Uncomment strings below to enable the JSON Web Token validation.
#- JWT_ENABLED=true
#- JWT_SECRET=secret
2022-03-12 15:49:30 +01:00
#- JWT_HEADER=AuthorizationJwt
2019-11-27 11:35:08 +03:00
#- JWT_IN_BODY=true
2020-03-27 18:44:56 +03:00
ports:
- '80:80'
- '443:443'
stdin_open: true
restart: always
stop_grace_period: 120s
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
onlyoffice-rabbitmq:
container_name: onlyoffice-rabbitmq
image: rabbitmq
restart: always
expose:
- '5672'
2016-08-25 19:52:14 +03:00
onlyoffice-postgresql:
container_name: onlyoffice-postgresql
image: postgres:9.5
environment:
2016-08-25 19:52:14 +03:00
- POSTGRES_DB=onlyoffice
- POSTGRES_USER=onlyoffice
2020-03-25 12:19:47 +03:00
- POSTGRES_HOST_AUTH_METHOD=trust
restart: always
expose:
2016-08-25 19:52:14 +03:00
- '5432'
volumes:
2016-08-25 19:52:14 +03:00
- postgresql_data:/var/lib/postgresql
volumes:
2016-08-25 19:52:14 +03:00
postgresql_data: