From 4637867da0a60768e13dad81dd34e8c4f7b872c6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kratochv=C3=ADl?= <xkrato10@fi.muni.cz>
Date: Mon, 13 Jun 2022 17:23:40 +0200
Subject: [PATCH] feat: docker-compose - created frontend network for client
 and nginx, deleted env_file in client for safety reasons

---
 docker-compose.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/docker-compose.yml b/docker-compose.yml
index ca38840..b746623 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -56,6 +56,7 @@ services:
       - 127.0.0.1:${NGINX_PORT}:${NGINX_PORT}
     networks:
       - backend-network
+      - frontend-network
     volumes:
       - ./nginx/templates:/etc/nginx/templates
       - ./nginx/nginx.conf:/etc/nginx/nginx.conf
@@ -73,9 +74,10 @@ services:
     build:
       context: ./frontend
       dockerfile: Dockerfile
-    env_file: .env
     ports:
       - 127.0.0.1:${CLIENT_PORT}:${CLIENT_PORT}
+    networks:
+     - frontend-network
     volumes:
       # changes in host's ./frontend directory will be propagated to the container
       - ./frontend:/usr/src/app
@@ -89,6 +91,7 @@ services:
 
 networks:
   backend-network:
+  frontend-network:
 
 volumes:
   database-storage:
-- 
GitLab