From 8c1b2f38276725d4c4809fc65322d4abf6457cf7 Mon Sep 17 00:00:00 2001 From: Jesus Galaz <jesusgalazr@icloud.com> Date: Tue, 26 Nov 2024 00:20:04 +0100 Subject: [PATCH] Revert "feat: add support for horizontal scaling with multiple back-end instances in docker-compose" This reverts commit f4513562350c1567d3c19e180551659c099268a4. --- docker-compose.yml | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index b606057..cb7d10c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,3 @@ -version: '3.9' services: mongodb: image: mongo:latest @@ -10,28 +9,14 @@ services: - MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD} - MONGO_INITDB_DATABASE=todo-app - todo-app-1: + todo-app: build: context: . dockerfile: Dockerfile - container_name: todo-app-1 + container_name: todo-app ports: - - "3001:3000" + - "80:3000" depends_on: - mongodb environment: - MONGO_URI=${MONGO_URI} - - PORT=3000 - - todo-app-2: - build: - context: . - dockerfile: Dockerfile - container_name: todo-app-2 - ports: - - "3002:3000" - depends_on: - - mongodb - environment: - - MONGO_URI=${MONGO_URI} - - PORT=3000 -- GitLab