![nextcloud collabora code docker domain settings nextcloud collabora code docker domain settings](https://miro.medium.com/max/1400/1*r783xrU9x13rzx01sPVipg.jpeg)
data/volumes/traefik/tmp:/tmp Code language: YAML ( yaml ) data/conf/traefik/traefik.toml:/traefik.toml. data/conf/traefik/acme.json:/acme.json. Version: "3" networks: default: driver: bridge traefik: internal: true services: watchtower: command: -label-enable -cleanup -interval 300 image: containrrr/watchtower labels: - "=true" network_mode: none restart: always volumes: - /var/run/docker.sock:/var/run/docker.sock dockerproxy: depends_on: - watchtower environment: CONTAINERS: 1 image: tecnativa/docker-socket-proxy labels: - "=true" networks: - traefik ports: - 2375 volumes: - "/var/run/docker.sock:/var/run/docker.sock" traefik: depends_on: - dockerproxy - watchtower image: traefik:2.0 labels: - "=true" networks: - default - traefik ports: - 80 :80 - 443 :443 restart: always volumes:. For a more complete explanation on the Traefik code below, you can visit my tutorials on hosting with Traefik 2, keeping your Docker containers updated and protecting your Docker socket file with Traefik. Setting up Traefik 2īelieve it or not, we can do this whole thing with a single docker-compose file. On your server, make sure you have Docker and Docker-compose available and that web ports (80 and 443) are available to the internet. Before you startīefore you start, make sure you have a domain for your Nextcloud instance and that it is pointing to your server. This tutorial will get you a Nextcloud instance running behind Traefik 2 with auto-updates and a clean security overview. The catch is, there isn’t much out there on getting it running right, particularly behind a proxy like Traefik 2. Believe it or not, that’s just scratching the surface of what it is capable of too. Today I use it as a replacement for Google Drive and Calendar, Contacts, Keep and Tasks. The first I want to cover has been the most import for me in my quest to leave big-tech behind, Nextcloud. I’ve been writing on general Traefik 2 usage for self-hosting for a couple of months now but, to date, I haven’t gone deep into any of the services I’ve been using it for myself.