From 1a5b1cf644f56a97ceb4855799652938f1f8dab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Dere=C5=BEi=C4=87?= Date: Mon, 15 Jan 2024 14:20:46 +0100 Subject: [PATCH] compose-file: added hosts file hack --- docker-compose-deploy.yml | 4 +++- etc/hosts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docker-compose-deploy.yml b/docker-compose-deploy.yml index 6998b1b..11e7f63 100644 --- a/docker-compose-deploy.yml +++ b/docker-compose-deploy.yml @@ -10,12 +10,14 @@ services: image: utility-bills-tracker:1.0.2 networks: - traefik-network # komunikacija sa Traefikom + volumes: + - ./etc/hosts/:/etc/hosts environment: MONGODB_URI: mongodb://root:example@mongo:27017/ GOOGLE_ID: 355397364527-adjrokm6hromcaaar0qfhk050mfr35ou.apps.googleusercontent.com GOOGLE_SECRET: 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 AUTH_SECRET: Gh0jQ35oq6DR8HkLR3heA8EaEDtxYN/xkP6blvukZ0w= - # HOSTNAME: rezije.localhost # IP address at which the server will be listening (0.0.0.0 = listen on all addresses) + HOSTNAME: rezije.app # IP address at which the server will be listening (0.0.0.0 = listen on all addresses) EXTAUTH_URL: ${HOSTNAME:-https://rezije.app} # URL next-auth will use while redirecting user during authentication (if not set - will use HOSTNAME) PORT: ${PORT:-3000} deploy: diff --git a/etc/hosts b/etc/hosts index 0eb978f..5a31167 100644 --- a/etc/hosts +++ b/etc/hosts @@ -4,4 +4,4 @@ fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters -0.0.0.0 rezije.app +127.0.0.1 rezije.app