Docker-DocumentServer/docker-compose.yml

87 lines
2.6 KiB
YAML
Raw Normal View History

version: "3.9"
services:
2020-03-27 15:44:56 +00:00
onlyoffice-documentserver:
build:
context: .
container_name: onlyoffice-documentserver
depends_on:
- onlyoffice-postgresql
- onlyoffice-rabbitmq
environment:
2022-07-29 17:24:07 +00:00
- USE_SECRETS=false
- 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
2022-07-29 09:47:31 +00:00
# Uncomment strings below to enable the JSON Web Token validation.
2019-09-24 09:55:24 +00:00
#- JWT_ENABLED=true
2022-07-29 09:47:31 +00:00
#- JWT_IN_BODY=true
2019-09-24 09:55:24 +00:00
#- JWT_SECRET=secret
#- JWT_HEADER=Authorization
2022-07-29 13:52:42 +00:00
# ↑ Uncomment two upper strings to use jwt_secret and jwt_header values by default without docker secrets.
# ↓ Or uncomment two strings below to use jwt_secret and jwt_header values from docker secrets that you create.
#- JWT_SECTER_FILE=/run/secrets/jwtSecret
#- JWT_HEADER_FILE=/run/secrets/jwtHeader
2020-03-27 15:44:56 +00:00
ports:
- '80:80'
- '443:443'
stdin_open: true
restart: always
2020-09-10 14:02:20 +00:00
stop_grace_period: 60s
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
2022-07-29 13:34:59 +00:00
# ↓ If you use docker secrets, uncomment srtings below only with secrets that you will use in your installtion
2022-07-29 09:47:31 +00:00
#secrets:
# - dbUser
# - dbPass
# - jwtSecret
# - jwtHeader
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
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
# ↑ Comment two lines upper: POSTGRES_HOST_AUTH_METHOD and POSTGRES_USER and
# ↓ Uncomment two strings below for use database access values from secrets that you create.
#- POSTGRES_USER_FILE=/run/secrets/dbUser
#- POSTGRES_PASSWORD_FILE=/run/secrets/dbPass
restart: always
expose:
2016-08-25 16:52:14 +00:00
- '5432'
volumes:
2016-08-25 16:52:14 +00:00
- postgresql_data:/var/lib/postgresql
2022-07-29 13:34:59 +00:00
# ↓ If you use docker secrets, uncomment srtings below only with secrets that you will use in your installtion
2022-07-29 09:47:31 +00:00
#secrets:
# - dbUser
# - dbPass
2022-07-29 13:34:59 +00:00
# ↓ If you use docker secrets, uncomment srtings below only with secrets that you will use in your installtion
2022-07-29 09:47:31 +00:00
#secrets:
# dbUser:
# external: true
# dbPass:
# external: true
# jwtSecret:
# external: true
# jwtHeader:
# external: true
volumes:
2016-08-25 16:52:14 +00:00
postgresql_data: