From 043520eba13788445e480545ea1e081b6bcce3c1 Mon Sep 17 00:00:00 2001
From: heighn23
 <Ignacio.Hernandez_de_la_fuente@Student.Reutlingen-University.DE>
Date: Tue, 5 Dec 2023 19:55:33 +0100
Subject: [PATCH] pls work

---
 .dockerignore       |  2 +-
 docker-compose.yaml | 18 ++++++++++++++++--
 2 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/.dockerignore b/.dockerignore
index 93f1361..5171c54 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -1,2 +1,2 @@
 node_modules
-npm-debug.log
+npm-debug.log
\ No newline at end of file
diff --git a/docker-compose.yaml b/docker-compose.yaml
index 7d7888b..6af7b0b 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -1,7 +1,7 @@
 version: '3'
 services:
-  todoapp:
-    container_name: todoapp
+  todoapp1:
+    container_name: todoapp1
     restart: always
     build: ./
     volumes:
@@ -14,6 +14,20 @@ services:
       - NODE_ENV=development
       - PORT=3000
   
+  todoapp2:
+    container_name: todoapp2
+    restart: always
+    build: ./
+    volumes:
+      - ./:/var/www/todoapp
+    links:
+      - mongo
+    ports:
+      - 3001:3000
+    environment:
+      - NODE_ENV=development
+      - PORT=3000
+  
   mongo:
     image: mongo
     container_name: mongo
-- 
GitLab