From 5f3e9a48d1c15448cc83dee5dc10c4b598046138 Mon Sep 17 00:00:00 2001 From: WilliamMiceli <9000802+WilliamMiceli@users.noreply.github.com> Date: Mon, 13 Aug 2018 15:35:44 -0400 Subject: [PATCH] Changed from using networks to links and basic formatting changes --- templates/Nextcloud/0/docker-compose.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/templates/Nextcloud/0/docker-compose.yml b/templates/Nextcloud/0/docker-compose.yml index 23d4628..4b23382 100644 --- a/templates/Nextcloud/0/docker-compose.yml +++ b/templates/Nextcloud/0/docker-compose.yml @@ -1,10 +1,8 @@ version: '2' -services: +services: nextcloud: image: nextcloud:stable-apache - depends_on: # Hopefully one day I'll upgrade to a rancher version that actually makes use of this. Here just for a future reminder. - - mysql dns: - 1.1.1.1 - 1.0.0.1 @@ -16,7 +14,6 @@ services: NEXTCLOUD_ADMIN_USER: ${NC_ADMIN} NEXTCLOUD_ADMIN_PASSWORD: ${NC_ADMIN_PASS} labels: - # io.rancher.container.hostname_override: container_name io.rancher.container.pull_image: always {{- if (.Values.HOST_LABEL)}} io.rancher.scheduler.affinity:host_label: ${HOST_LABEL} @@ -29,17 +26,16 @@ services: traefik.backend: Nextcloud traefik.frontend.entryPoints: http,https traefik.docker.network: public + links: + - mysql networks: - - default - - nextcloud-nfs-net - - public + - public-proxy ports: - "${HOST_HTTP_PORT}:80" restart: on-failure volumes: - Application:/var/www/html - UserData:/var/www/html/data - mysql: image: mysql:5 dns: @@ -55,16 +51,14 @@ services: {{- if (.Values.HOST_LABEL)}} io.rancher.scheduler.affinity:host_label: ${HOST_LABEL} {{- end}} - networks: - - nextcloud-nfs-net restart: on-failure volumes: - Database:/var/lib/mysql networks: - nextcloud-nfs-net: - public: + public-proxy: external: true + volumes: Application: driver: rancher-nfs