From c5c2252a743781cb40510e0b1b9e8bf53667e232 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 15 Nov 2023 15:47:59 +0100 Subject: [PATCH] refs #5739 perf: same network --- docker-compose.local.yml | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/docker-compose.local.yml b/docker-compose.local.yml index a52c57bda..65f3731a7 100644 --- a/docker-compose.local.yml +++ b/docker-compose.local.yml @@ -5,23 +5,6 @@ services: build: context: db dockerfile: Dockerfile - ports: - - 3306:3306 - networks: - - salix-stack-network - back: - image: salix-back - build: - context: . - dockerfile: Dockerfile - networks: - - salix-stack-network - ports: - - 3000:3000 - depends_on: - - db - environment: - - NODE_ENV front: image: front build: @@ -29,6 +12,21 @@ services: dockerfile: front/Dockerfile ports: - 5000:80 + links: + - back + + back: + image: salix-back + build: + context: . + dockerfile: Dockerfile + ports: + - 3000:3000 + environment: + - NODE_ENV + depends_on: + - db networks: salix-stack-network: + driver: host