From e91051527030d2183106ed2d4506b7bf62b6117e Mon Sep 17 00:00:00 2001 From: Brandon Egger Date: Thu, 29 Feb 2024 17:16:39 -0600 Subject: [PATCH] add configurable port --- .env.example | 3 +++ docker-compose.yml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 184961b..bff1e7b 100644 --- a/.env.example +++ b/.env.example @@ -19,3 +19,6 @@ DATABASE_URL= # Admin account details ADMIN_PASSWORD="password" + +# Container Port +PORT=1234 diff --git a/docker-compose.yml b/docker-compose.yml index f165f4e..39176b0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,7 @@ services: context: . restart: always ports: - - "1234:3000" + - "${PORT}:3000" environment: - NEXTAUTH_SECRET - NEXTAUTH_URL