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