Skip to content

Instantly share code, notes, and snippets.

@tcoupin
Created October 30, 2018 20:31
Show Gist options
  • Save tcoupin/34558e6e2e31e0ebd080110356d73880 to your computer and use it in GitHub Desktop.
Save tcoupin/34558e6e2e31e0ebd080110356d73880 to your computer and use it in GitHub Desktop.
deploy nextcloud behind traefik
version: "2.0"
services:
nextcloud:
build: .
volumes:
- /mnt/pi3/nextcloud/data:/var/www/html/data
- /mnt/pi3/nextcloud/config:/var/www/html/config
- /mnt/pi3/nextcloud/apps:/var/www/html/apps
- /mnt/pi3/nextcloud/theme:/var/www/html/themes
networks:
- main_middle
labels:
traefik.port: "80"
traefik.frontend.rule: "Host:cloud.thibbo.duckdns.org"
traefik.backend: "owncloud"
traefik.docker.network: "main_middle"
restart: always
networks:
main_middle:
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment