From 24bdc061903cb3687befd868f0906b89bd793fde Mon Sep 17 00:00:00 2001 From: eroncero Date: Sun, 3 Aug 2025 17:56:45 +0200 Subject: [PATCH] Env improved --- .env | 4 ++++ docker-compose.yaml | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.env b/.env index 54e266e..3cdf404 100644 --- a/.env +++ b/.env @@ -1 +1,5 @@ +HOST_HTTP_PORT=80 +HOST_HTTPS_PORT=443 +NGINX_HTTP_PORT=8888 +NGINX_HTTPS_PORT=8843 PHP_VERSIONS=7.2 7.1 # Set this without quotes! diff --git a/docker-compose.yaml b/docker-compose.yaml index 72ec96e..f9d0b1f 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -2,8 +2,8 @@ services: nginx-srv: image: eroncero/nginx-srv ports: - - "127.0.0.1:8888:80" - - "[::1]:8843:443" + - "127.0.0.1:${NGINX_HTTP_PORT}:${HOST_HTTP_PORT}" + - "[::1]:${NGINX_HTTPS_PORT}:${HOST_HTTPS_PORT}" restart: unless-stopped volumes: - ./nginx-srv/sites-available:/etc/nginx/sites-available