2016-07-07 16:13:26 +02:00
|
|
|
version: '2'
|
|
|
|
services:
|
2020-03-27 16:44:56 +01:00
|
|
|
onlyoffice-documentserver:
|
2022-05-15 17:11:17 +02:00
|
|
|
build:
|
|
|
|
context: .
|
2020-03-27 16:44:56 +01:00
|
|
|
container_name: onlyoffice-documentserver
|
|
|
|
depends_on:
|
|
|
|
- onlyoffice-postgresql
|
|
|
|
- onlyoffice-rabbitmq
|
2016-07-07 16:13:26 +02:00
|
|
|
environment:
|
2019-10-29 10:42:43 +01:00
|
|
|
- DB_TYPE=postgres
|
|
|
|
- DB_HOST=onlyoffice-postgresql
|
|
|
|
- DB_PORT=5432
|
|
|
|
- DB_NAME=onlyoffice
|
|
|
|
- DB_USER=onlyoffice
|
2019-12-23 10:27:47 +01:00
|
|
|
- AMQP_URI=amqp://guest:guest@onlyoffice-rabbitmq
|
2019-09-24 11:55:24 +02:00
|
|
|
# Uncomment strings below to enable the JSON Web Token validation.
|
|
|
|
#- JWT_ENABLED=true
|
|
|
|
#- JWT_SECRET=secret
|
2022-03-10 00:05:54 +01:00
|
|
|
#- JWT_HEADER=AuthorizationJwt
|
2019-11-27 09:35:08 +01:00
|
|
|
#- JWT_IN_BODY=true
|
2022-05-15 15:15:19 +02:00
|
|
|
# Uncomment the line below to set larger file limits (about 1GB)
|
|
|
|
#- LARGER_FILE_LIMITS=true
|
2020-03-27 16:44:56 +01:00
|
|
|
ports:
|
|
|
|
- '80:80'
|
|
|
|
- '443:443'
|
2016-07-11 10:47:22 +02:00
|
|
|
stdin_open: true
|
|
|
|
restart: always
|
2022-03-09 16:45:56 +01:00
|
|
|
stop_grace_period: 120s
|
2016-07-11 10:47:22 +02:00
|
|
|
volumes:
|
2022-05-15 15:25:08 +02:00
|
|
|
# Uncomment the line below to get access to the slide themes directory.
|
|
|
|
# To use the themes, copy them to the slideThemes directory and run `docker exec -it <container-name> /usr/bin/documentserver-generate-allfonts.sh`
|
|
|
|
#- ./slideThemes:/var/www/onlyoffice/documentserver/sdkjs/slide/themes/src
|
2016-07-11 10:47:22 +02:00
|
|
|
- /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 16:13:26 +02:00
|
|
|
onlyoffice-rabbitmq:
|
|
|
|
container_name: onlyoffice-rabbitmq
|
|
|
|
image: rabbitmq
|
|
|
|
restart: always
|
|
|
|
expose:
|
|
|
|
- '5672'
|
|
|
|
|
2016-08-25 18:52:14 +02:00
|
|
|
onlyoffice-postgresql:
|
|
|
|
container_name: onlyoffice-postgresql
|
2023-11-29 10:33:41 +01:00
|
|
|
image: postgres:12
|
2016-07-07 16:13:26 +02:00
|
|
|
environment:
|
2016-08-25 18:52:14 +02:00
|
|
|
- POSTGRES_DB=onlyoffice
|
|
|
|
- POSTGRES_USER=onlyoffice
|
2020-03-25 10:19:47 +01:00
|
|
|
- POSTGRES_HOST_AUTH_METHOD=trust
|
2016-07-07 16:13:26 +02:00
|
|
|
restart: always
|
|
|
|
expose:
|
2016-08-25 18:52:14 +02:00
|
|
|
- '5432'
|
2016-07-07 16:13:26 +02:00
|
|
|
volumes:
|
2016-08-25 18:52:14 +02:00
|
|
|
- postgresql_data:/var/lib/postgresql
|
2016-07-07 16:13:26 +02:00
|
|
|
|
|
|
|
volumes:
|
2016-08-25 18:52:14 +02:00
|
|
|
postgresql_data:
|