From ee3e5287d573a0bc3331da739c2668c8ee5972ce Mon Sep 17 00:00:00 2001
From: Quentin Duchemin <quentinduchemin@tuta.io>
Date: Tue, 1 Sep 2020 15:16:22 +0200
Subject: [PATCH] [CloudCeT] Fix network conf

---
 pica-nextcloud/docker-compose-cet.yml | 14 ++++++--------
 1 file changed, 6 insertions(+), 8 deletions(-)

diff --git a/pica-nextcloud/docker-compose-cet.yml b/pica-nextcloud/docker-compose-cet.yml
index c0886b04..2ad1b4af 100644
--- a/pica-nextcloud/docker-compose-cet.yml
+++ b/pica-nextcloud/docker-compose-cet.yml
@@ -1,9 +1,8 @@
 version: '3.7'
 networks:
+  nextcloud_cet:
   docker_default:
     name: docker_default
-  cloud_cet:
-    name: cloud_cet
 
 volumes:
   nextcloud_cet:
@@ -16,7 +15,7 @@ services:
     container_name: cloudcet
     image: nextcloud:19.0-fpm
     networks:
-      - cloud_cet
+      - nextcloud_cet
     volumes:
       - nextcloud_cet:/var/www/html
     env_file: ./secrets/cloudcet.secrets
@@ -24,7 +23,6 @@ services:
       - POSTGRES_HOST=cloudcet_db
     depends_on:
       - cloudcet_db
-      - cloudcet_web
     restart: unless-stopped
 
   cloudcet_web:
@@ -34,15 +32,15 @@ services:
       - nextcloud_cet:/var/www/html:ro
       - ./nginx_cet.conf:/etc/nginx/nginx.conf:ro
     env_file: ./secrets/cloudcet.secrets
-    ports:
-      - 2002:80
     labels:
       - "traefik.frontend.rule=Host:cloudcet.picasoft.net"
       - "traefik.port=80"
       - "traefik.enable=true"
     networks:
       - docker_default
-      - cloud_cet
+      - nextcloud_cet
+    depends_on:
+      - cloudcet
     restart: unless-stopped 
 
   cloudcet_db:
@@ -52,5 +50,5 @@ services:
       - nextcloud_cet_db:/var/lib/postgresql/data
     env_file: ./secrets/cloudcet.secrets
     networks:
-      - cloud_cet
+      - nextcloud_cet
     restart: unless-stopped
-- 
GitLab