From 9445980e0433b04579efa89bc4c2e061b7f242ba Mon Sep 17 00:00:00 2001 From: Christian Winther Date: Sat, 6 Jan 2024 15:57:20 +0000 Subject: [PATCH] expose both http and https ports --- .env.docker | 7 +++++-- docker-compose.yml | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.env.docker b/.env.docker index 0508e939a..ba4f62556 100644 --- a/.env.docker +++ b/.env.docker @@ -917,5 +917,8 @@ DOCKER_REDIS_PORT_EXTERNAL="${REDIS_PORT}" # Use "3306" for MySQL/MariaDB and "5432" for PostgreeSQL DOCKER_DB_PORT_EXTERNAL="${DB_PORT}" -# Port that the web will listen on *outside* the container (e.g. the host machine) -DOCKER_WEB_PORT_EXTERNAL="8080" +# Port that the web will listen on *outside* the container (e.g. the host machine) for HTTP traffic +DOCKER_WEB_HTTP_PORT_EXTERNAL="8080" + +# Port that the web will listen on *outside* the container (e.g. the host machine) for HTTPS traffic +DOCKER_WEB_HTTPS_PORT_EXTERNAL="444" diff --git a/docker-compose.yml b/docker-compose.yml index 4b93c75e9..4b1b6ac4b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,7 +16,8 @@ services: - "${DOCKER_DATA_ROOT}/pixelfed/cache:/var/www/bootstrap/cache" - "${DOCKER_DATA_ROOT}/pixelfed/storage:/var/www/storage" ports: - - "${DOCKER_WEB_PORT_EXTERNAL}:80" + - "${DOCKER_WEB_HTTP_PORT_EXTERNAL}:80" + - "${DOCKER_WEB_HTTPS_PORT_EXTERNAL}:443" depends_on: - db - redis