onlyoffice-docserver/variables.yml

90 lines
3.0 KiB
YAML
Raw Normal View History

2023-11-08 22:40:57 +01:00
---
2023-12-21 23:06:48 +01:00
# Name of this instance. Will control the name of the service and of various default settings (like DB name etc.)
# You must use different instance names if you want to run several copies on the same cluster
instance: onlyoffice
2023-11-11 00:56:43 +01:00
2023-12-21 23:06:48 +01:00
oo:
2023-11-08 22:40:57 +01:00
2023-11-11 00:56:43 +01:00
# Document Services
2023-11-08 22:40:57 +01:00
ds:
2024-01-30 16:23:05 +01:00
# Version of OnlyOffice
2024-02-26 13:08:32 +01:00
version: 8.0.1
2024-01-30 16:23:05 +01:00
2023-11-11 00:56:43 +01:00
# Docker image to use
2024-01-30 16:23:05 +01:00
image: '[[ .docker.repo ]]onlyoffice-docserver:[[ .oo.ds.version ]]-2'
2023-11-11 00:56:43 +01:00
# Resource allocation for OnlyOffice itself
2023-11-08 22:40:57 +01:00
resources:
cpu: 300
2023-11-08 22:40:57 +01:00
memory: 512
2023-11-11 00:56:43 +01:00
# The URL where OnlyOffice is available
2023-11-08 22:40:57 +01:00
public_url: https://oods.example.org
2023-11-11 00:56:43 +01:00
2024-01-11 23:09:41 +01:00
vault:
2024-01-31 15:15:52 +01:00
# Vault policies to attach to the task
2024-01-11 23:09:41 +01:00
policies:
- '[[ .instance ]][[ .consul.suffix ]]'
2024-01-31 15:15:52 +01:00
# Random secrets to generate
rand_secrets:
fields:
- jwt_token
- storage_secret
2024-01-11 23:09:41 +01:00
2023-11-11 00:56:43 +01:00
# Additional env vars to set in the container
2023-11-11 00:13:30 +01:00
env:
2024-01-31 15:15:52 +01:00
OO_STORAGE_SECRET: '{{ with secret "[[ .vault.root ]]kv/service/[[ .instance ]]" }}{{ .Data.data.storage_secret }}{{ end }}'
OO_JWT_TOKEN: '{{ with secret "[[ .vault.root ]]kv/service/[[ .instance ]]" }}{{ .Data.data.jwt_token }}{{ end }}'
2023-11-11 00:56:43 +01:00
# Controls how the service will be exposed with Traefik
2023-11-08 22:40:57 +01:00
traefik:
enabled: true
2023-11-11 00:56:43 +01:00
# OnlyOffice needs some specific CSP rules
2023-11-11 00:13:30 +01:00
csp:
img-src: "'self' data: https://*"
2023-11-11 00:56:43 +01:00
script-src: "'self' 'wasm-unsafe-eval' 'unsafe-inline' 'unsafe-eval' blob: https://ajax.googleapis.com https://www.youtube.com/ https://*.cloudfront.net https://cdn.rawgit.com https://code.jquery.com https://translate.googleapis.com https://code.responsivevoice.org https://cdn.jsdelivr.net https://onlyoffice.github.io"
style-src: "'self' 'unsafe-inline' data: https://fonts.googleapis.com https://translate.googleapis.com https://onlyoffice.github.io"
2023-11-11 00:13:30 +01:00
font-src: "'self' data: https://fonts.googleapis.com https://fonts.gstatic.com"
connect-src: "'self' https://www.zotero.org https://cdn.jsdelivr.net https://cdn.rawgit.com https://translate.googleapis.com https://code.responsivevoice.org https://onlyoffice.github.io"
media-src: "'self' https://code.responsivevoice.org"
frame-src: "'self' https://www.youtube.com https://onlyoffice.github.io"
2023-11-11 00:56:43 +01:00
# Wait for the database server to be ready before starting
2023-11-08 22:40:57 +01:00
wait_for:
- service: 'master.postgres[[ .consul.suffix ]]'
2023-11-11 00:56:43 +01:00
# Connect to the database server with the mesh
2023-11-08 22:40:57 +01:00
consul:
connect:
upstreams:
- destination_name: 'postgres[[ .consul.suffix ]]'
local_bind_port: 5432
2023-11-11 00:56:43 +01:00
# Rabbitmq service
2023-11-08 22:40:57 +01:00
rabbitmq:
2023-11-11 00:56:43 +01:00
# Docker image to use
2023-11-08 22:40:57 +01:00
image: rabbitmq:alpine
2023-11-11 00:56:43 +01:00
# Additional env vars to set in the container
2023-11-08 22:40:57 +01:00
env: {}
2023-11-11 00:56:43 +01:00
# Resource allocation
2023-11-08 22:40:57 +01:00
resources:
cpu: 200
2023-11-11 00:13:30 +01:00
memory: 156
2023-11-08 22:40:57 +01:00
2023-11-11 00:56:43 +01:00
# Volume used
2023-11-08 22:40:57 +01:00
volumes:
2023-11-11 00:56:43 +01:00
# This is for DocumentServer Data
2023-11-11 00:13:30 +01:00
data:
2023-11-08 22:40:57 +01:00
type: csi
2023-12-21 23:06:48 +01:00
source: '[[ .instance ]]-data'
2023-11-11 00:56:43 +01:00
# This is for RabbitMQ
2023-11-11 00:13:30 +01:00
rabbitmq:
type: csi
2023-12-21 23:06:48 +01:00
source: '[[ .instance ]]-rabbitmq'