1
0
Fork 0

expose both http and https ports

This commit is contained in:
Christian Winther 2024-01-06 15:57:20 +00:00
parent bd1cd9c4fc
commit 9445980e04
2 changed files with 7 additions and 3 deletions

View File

@ -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"

View File

@ -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