From ed758f843d161902ae5bb3722cc4ad71efc313c4 Mon Sep 17 00:00:00 2001 From: knee-cola Date: Wed, 10 Jan 2024 20:47:30 +0100 Subject: [PATCH] deploy compose: hardcoded prod FQDN --- docker-compose-deploy.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/docker-compose-deploy.yml b/docker-compose-deploy.yml index c64385e..089f525 100644 --- a/docker-compose-deploy.yml +++ b/docker-compose-deploy.yml @@ -5,17 +5,19 @@ services: web-app: image: utility-bills-tracker:1.0.0 ports: - - 3000:3000 + - ${PORT:-3001}:80 + volumes: + - ./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: ${HOSTNAME:-0.0.0.0} # IP address at which the server will be listening (0.0.0.0 = listen on all addresses) - NEXTAUTH_URL: ${NEXTAUTH_URL:-http://localhost:3000} # URL next-auth will use while redirecting user during authentication (if not set - will use HOSTNAME) - PORT: ${PORT:-3000} + HOSTNAME: ${HOSTNAME:-rezije.app} # IP address at which the server will be listening (0.0.0.0 = listen on all addresses) + NEXTAUTH_URL: ${NEXTAUTH_URL:-https://rezije.app} # URL next-auth will use while redirecting user during authentication (if not set - will use HOSTNAME) + PORT: 80 mongo: - image: mongo:6.0.12 + image: mongo:4.4.27 environment: MONGO_INITDB_ROOT_USERNAME: root MONGO_INITDB_ROOT_PASSWORD: example