From 36ddf78fc970ec795133bac259925bf552e5b435 Mon Sep 17 00:00:00 2001 From: Stefan <32109571+Stefan-5422@users.noreply.github.com> Date: Wed, 17 Nov 2021 21:27:20 +0100 Subject: [PATCH] FIX: Issue with docker network Issue with docker-compose caused server to refuse to build on Server due to not being able to download from the Internet. Might need to be reviewed at a later point --- docker-compose.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 8e594b2..b706db3 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,4 @@ -version: "3" +version: "3.4" services: mail: image: boky/postfix @@ -22,7 +22,10 @@ services: image: redis restart: always server: - build: . + # REVIEW: This is setting the network context to host (during build time) which is generally considered a bad idea + build: + context: . + network: host restart: always container_name: "server" ports: