From 2aaad4cf968a3ebd4c24a97f7a94b3c08cbf0d00 Mon Sep 17 00:00:00 2001 From: Felipe Cotti Date: Sun, 1 Dec 2024 16:43:24 -0300 Subject: [PATCH] Don't just expose things when in public. --- build/docker-compose.public.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/build/docker-compose.public.yml b/build/docker-compose.public.yml index 31605f0..b2a1c8c 100644 --- a/build/docker-compose.public.yml +++ b/build/docker-compose.public.yml @@ -20,6 +20,8 @@ services: depends_on: - mongo restart: unless-stopped + networks: + - guestbooky mongo: image: mongo @@ -33,8 +35,13 @@ services: - ./mongodb/mongod.conf:/etc/mongod.conf:ro - mongodata:/data/db command: ["mongod", "--config", "/etc/mongod.conf"] - ports: - - "27017:27017" + networks: + - guestbooky + volumes: - mongodata: \ No newline at end of file + mongodata: + +networks: + guestbooky: + driver: bridge