Skip to content

Commit

Permalink
Merge pull request #11 from Monadical-SAS/miltonln/onlyoffice
Browse files Browse the repository at this point in the history
OnlyOffice
  • Loading branch information
MiltonLn authored Jan 28, 2025
2 parents bed9d10 + 8bf57d7 commit 2f87d2d
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 0 deletions.
1 change: 1 addition & 0 deletions onlyoffice/bin/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
helper scripts go here
1 change: 1 addition & 0 deletions onlyoffice/data/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
service state and logs go here
80 changes: 80 additions & 0 deletions onlyoffice/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
services:
onlyoffice:
image: onlyoffice/documentserver
restart: always
volumes:
- document_data:/var/www/onlyoffice/Data
- document_log:/var/log/onlyoffice
- document_cache:/var/lib/onlyoffice
- document_files:/var/www/onlyoffice/DocumentServer/data
- document_fonts:/usr/share/fonts/truetype/custom
- document_forgotten:/var/lib/onlyoffice/documentserver/App_Data/cache/files/forgotten
environment:
- JWT_ENABLED=true
- JWT_SECRET=${JWT_SECRET}
- JWT_HEADER=Authorization
- DB_TYPE=postgres
- DB_HOST=db
- DB_PORT=5432
- DB_NAME=${POSTGRES_DB}
- DB_USER=${POSTGRES_USER}
- DB_PWD=${DB_PASSWORD}
- REDIS_SERVER_HOST=redis
- REDIS_SERVER_PORT=6379
networks:
- internal
- traefik-public
labels:
- traefik.enable=true
- traefik.docker.network=traefik-public
- traefik.http.routers.onlyoffice.rule=Host(`onlyoffice.selfhostyour.tech`)
- traefik.http.routers.onlyoffice.entrypoints=web
- traefik.http.routers.onlyoffice.middlewares=redirect-to-https
- traefik.http.routers.onlyoffice-secure.rule=Host(`onlyoffice.selfhostyour.tech`)
- traefik.http.routers.onlyoffice-secure.entrypoints=websecure
- traefik.http.routers.onlyoffice-secure.tls=true
- traefik.http.routers.onlyoffice-secure.tls.certresolver=letsencrypt
- traefik.http.services.onlyoffice.loadbalancer.server.port=80
- traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https
- traefik.http.middlewares.redirect-to-https.redirectscheme.permanent=true
depends_on:
- db
- redis

db:
image: postgres:13-alpine
restart: always
volumes:
- postgresql_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
networks:
- internal
- traefik-public

redis:
image: redis:6-alpine
restart: always
volumes:
- redis_data:/data
command: redis-server --requirepass ${REDIS_PASSWORD}
networks:
- internal
- traefik-public

volumes:
document_data:
document_log:
document_cache:
document_files:
document_fonts:
document_forgotten:
postgresql_data:
redis_data:

networks:
internal:
traefik-public:
external: true
1 change: 1 addition & 0 deletions onlyoffice/etc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
config files go here

0 comments on commit 2f87d2d

Please sign in to comment.