From 3c8ca8dd4abc7fc0966e46356115e8148bb8ec82 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Mon, 26 Apr 2021 00:01:36 +0300 Subject: [PATCH] Revert "Allow Nginx access to the host network." This reverts commit 6e2443d51e4b502b22ba1a75271f834a14ae5a60. --- docker-compose.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index b8bf6ef..d5eb426 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,9 +5,14 @@ services: build: context: ./ # command: ["nginx", "-g", "daemon off;"] + hostname: &hostname kodi.shore.co.il networks: - - default - - host + default: + aliases: + - *hostname + ports: + - '80:80' + - '443:443' restart: always volumes: - '/var/www/www.shore.co.il/.well-known/acme-challenge:/var/www/www.shore.co.il/.well-known/acme-challenge:ro' @@ -36,6 +41,3 @@ services: networks: default: name: shore - host: - external: true - name: host -- GitLab