Move OnlyOffice to be its own configuration again. Add sourcing of DNS settings so that local traffic routes correctly.

This commit is contained in:
2023-08-21 12:01:24 -07:00
parent ea2f3953ee
commit 0451897610
2 changed files with 25 additions and 10 deletions

View File

@@ -4,7 +4,6 @@
# Changelog:
# 2023-07-16 Change from mariadb:10.5 to 10.6.
# 2023-07-25 Add Onlyoffice. (https://github.com/ONLYOFFICE/docker-onlyoffice-nextcloud)
# 2023-08-20 Add Redis. (https://markontech.com/docker/setup-nextcloud-with-redis-using-docker/)
version: '3'
@@ -23,14 +22,6 @@ services:
- MYSQL_USER=nc
- MYSQL_PASSWORD=changeme
oo:
container_name: nc-oo
image: onlyoffice/documentserver
restart: always
ports:
- 8000:80
- 4443:443
redis:
container_name: nc-redis
image: redis
@@ -45,10 +36,11 @@ services:
- 8080:80
links:
- db
- oo
- redis
volumes:
- ../../Volumes/Nextcloud/nextcloud:/var/www/html
env_file:
- ../../dns.env
environment:
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nc
@@ -57,3 +49,6 @@ services:
- PHP_UPLOAD_LIMIT=5G
- REDIS_HOST=redis
- REDIS_HOST_PASSWORD=someredispassword
dns:
- "$DNS1"
- "$DNS2"

View File

@@ -0,0 +1,20 @@
# 2023-07-25
# OnlyOffice server, primarily used for Nextcloud.
version: '3'
services:
app:
container_name: oo-app
image: onlyoffice/documentserver
restart: always
ports:
- 8000:80
- 4443:443
environment:
- JWT_SECRET=abc123
env_file:
- ../../dns.env
dns:
- $DNS1
- $DNS2