generated from coop-cloud/example
Compare commits
8
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ebd54680ac | ||
|
|
c7218e7f51 | ||
|
|
046280291e | ||
|
|
39bf619e0a | ||
|
|
0f2fbad07e
|
||
|
|
2820843f6a | ||
|
|
59971c18be | ||
|
|
5da7b78c14 |
+1
-1
@@ -1,5 +1,5 @@
|
||||
TYPE=onlyoffice
|
||||
TIMEOUT=300
|
||||
#TIMEOUT=300
|
||||
ENABLE_AUTO_UPDATE=true
|
||||
LETS_ENCRYPT_ENV=production
|
||||
ENABLE_BACKUPS=true
|
||||
|
||||
@@ -25,3 +25,8 @@
|
||||
|
||||
For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech) and [`ONLYOFFICE/Docker-DocumentServer`](https://github.com/ONLYOFFICE/Docker-DocumentServer).
|
||||
[Official Onlyoffice docker compose](https://github.com/ONLYOFFICE/Docker-DocumentServer/blob/master/docker-compose.yml)
|
||||
|
||||
## Add custom fonts
|
||||
Per default the config parameter for **GENERATE_FONT** is set to *true*, so fonts list and the fonts thumbnails are regenerated at each start. To add additional fonts you can copy them via abra to the volume `/usr/share/fonts/truetype` and restart the service:
|
||||
* `abra app cp 123.net calibri-regular.ttf app:/usr/share/fonts/truetype`
|
||||
* `abra app restart office.tmp.dev.local-it.cloud service app`
|
||||
|
||||
+20
-19
@@ -1,7 +1,7 @@
|
||||
version: '3.8'
|
||||
version: "3.8"
|
||||
services:
|
||||
app:
|
||||
image: onlyoffice/documentserver:9.0.2
|
||||
image: onlyoffice/documentserver:9.4.0
|
||||
depends_on:
|
||||
- db
|
||||
- rabbitmq
|
||||
@@ -20,10 +20,12 @@ services:
|
||||
AUTO_ASSEMBLY_ENABLED:
|
||||
AUTO_ASSEMBLY_INTERVAL:
|
||||
AUTO_ASSEMBLY_STEP:
|
||||
volumes:
|
||||
- fonts:/usr/share/fonts/truetype
|
||||
secrets:
|
||||
- db_password
|
||||
healthcheck:
|
||||
test: [ "CMD", "curl", "-f", "http://localhost/welcome" ]
|
||||
test: ["CMD", "curl", "-f", "http://localhost/welcome"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
@@ -38,19 +40,19 @@ services:
|
||||
failure_action: rollback
|
||||
order: start-first
|
||||
labels:
|
||||
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT:-120}"
|
||||
- "coop-cloud.${STACK_NAME}.timeout=${TIMEOUT}"
|
||||
- "traefik.enable=true"
|
||||
- "traefik.docker.network=proxy"
|
||||
- "traefik.swarm.network=proxy"
|
||||
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
|
||||
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
|
||||
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
||||
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
|
||||
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-fwdproto"
|
||||
- "traefik.http.middlewares.${STACK_NAME}-fwdproto.headers.customRequestHeaders.X-Forwarded-Proto=https"
|
||||
- "coop-cloud.${STACK_NAME}.version=2.11.0+9.0.2"
|
||||
|
||||
- "coop-cloud.${STACK_NAME}.version=2.13.0+9.4.0"
|
||||
|
||||
rabbitmq:
|
||||
image: rabbitmq:4.1.1
|
||||
image: rabbitmq:4.3.5
|
||||
networks:
|
||||
- internal
|
||||
healthcheck:
|
||||
@@ -63,11 +65,11 @@ services:
|
||||
db:
|
||||
image: postgres:9.5
|
||||
deploy:
|
||||
labels:
|
||||
backupbot.backup: "${ENABLE_BACKUPS:-true}"
|
||||
backupbot.backup.pre-hook: "/pg_backup.sh backup"
|
||||
backupbot.backup.volumes.db.path: "backup.sql"
|
||||
backupbot.restore.post-hook: '/pg_backup.sh restore'
|
||||
labels:
|
||||
backupbot.backup: "${ENABLE_BACKUPS:-true}"
|
||||
backupbot.backup.pre-hook: "/pg_backup.sh backup"
|
||||
backupbot.backup.volumes.db.path: "backup.sql"
|
||||
backupbot.restore.post-hook: "/pg_backup.sh restore"
|
||||
environment:
|
||||
POSTGRES_DB: onlyoffice
|
||||
POSTGRES_USER: onlyoffice
|
||||
@@ -79,26 +81,25 @@ services:
|
||||
networks:
|
||||
- internal
|
||||
healthcheck:
|
||||
test: [ "CMD", "pg_isready", "-U", "onlyoffice" ]
|
||||
test: ["CMD", "pg_isready", "-U", "onlyoffice"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 10
|
||||
start_period: 1m
|
||||
configs:
|
||||
- source: pg_backup
|
||||
target: /pg_backup.sh
|
||||
mode: 0555
|
||||
- source: pg_backup
|
||||
target: /pg_backup.sh
|
||||
mode: 0555
|
||||
|
||||
volumes:
|
||||
db:
|
||||
|
||||
fonts:
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
internal:
|
||||
|
||||
|
||||
secrets:
|
||||
db_password:
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user