Forráskód Böngészése

expose both http and https ports

Christian Winther 1 éve
szülő
commit
9445980e04
2 módosított fájl, 7 hozzáadás és 3 törlés
  1. 5 2
      .env.docker
  2. 2 1
      docker-compose.yml

+ 5 - 2
.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"

+ 2 - 1
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