From 860ae32a05eeebcdf03906e42fd8e8759b583ff0 Mon Sep 17 00:00:00 2001 From: Darshan Kumar Date: Wed, 14 Feb 2024 18:54:00 +0530 Subject: [PATCH] make a seperate network Signed-off-by: Darshan Kumar --- docker-compose.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 30d5f1c..0936661 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,8 +11,8 @@ services: volumes: - db-data:/var/lib/postgresql/data - ./init.sql:/docker-entrypoint-initdb.d/init.sql - ports: - - "9899:5432" + networks: + - nymeria-network app: container_name: nymeria-app build: . @@ -20,7 +20,12 @@ services: - "9898:9898" depends_on: - db + networks: + - nymeria-network volumes: db-data: name: nymeria-db + +networks: + nymeria-network: