Configure traefik and nextcloud to use a static IP for collabora
This commit is contained in:
parent
5b80f9091c
commit
ca84d8174b
@ -14,8 +14,7 @@ REDIS_HOST_PASSWORD=password_redis
|
|||||||
NEXTCLOUD_ROOT=/home/compute/services/nextcloud
|
NEXTCLOUD_ROOT=/home/compute/services/nextcloud
|
||||||
NEXTCLOUD_DATA_DIR=/srv/nextcloud/data
|
NEXTCLOUD_DATA_DIR=/srv/nextcloud/data
|
||||||
NEXTCLOUD_FQDN=your_nextcloud_sub_domain.domain.com
|
NEXTCLOUD_FQDN=your_nextcloud_sub_domain.domain.com
|
||||||
# This is the IP of the Trafik container. This changes if the traefik container restarts. If it is not the current traefik container IP collabora does not work. Check the current traefik container IP with: docker inspect traefik and get the IP from the Networks -> traefik_default -> IPAddress section
|
TRAEFIK_CONTAINER_IP=172.27.0.16 # This is the traefik container ip in the traefik_default network. I configured the traefik container with a static IP so this does not have to be changed anymore.
|
||||||
TRAEFIK_CONTAINER_IP=172.27.0.16
|
|
||||||
PHP_MEMORY_LIMIT=2048M
|
PHP_MEMORY_LIMIT=2048M
|
||||||
PHP_UPLOAD_LIMIT=8G
|
PHP_UPLOAD_LIMIT=8G
|
||||||
|
|
||||||
|
@ -3,11 +3,12 @@ version: '3.5'
|
|||||||
networks:
|
networks:
|
||||||
default:
|
default:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
ipam:
|
||||||
|
config:
|
||||||
|
- subnet: 172.27.0.0/24
|
||||||
socket_proxy:
|
socket_proxy:
|
||||||
external:
|
|
||||||
name: socket_proxy
|
name: socket_proxy
|
||||||
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
# Only accept needed incoming docker API calls
|
# Only accept needed incoming docker API calls
|
||||||
socket-proxy:
|
socket-proxy:
|
||||||
@ -92,8 +93,9 @@ services:
|
|||||||
# The official v2 Traefik docker image
|
# The official v2 Traefik docker image
|
||||||
image: traefik:v2.3
|
image: traefik:v2.3
|
||||||
networks:
|
networks:
|
||||||
- socket_proxy
|
default:
|
||||||
- default
|
ipv4_address: 172.27.0.100
|
||||||
|
socket_proxy: null
|
||||||
env_file: live.env
|
env_file: live.env
|
||||||
container_name: "traefik"
|
container_name: "traefik"
|
||||||
# Enables the web UI and tells Traefik to listen to docker
|
# Enables the web UI and tells Traefik to listen to docker
|
||||||
|
Loading…
Reference in New Issue
Block a user