Skip to content

Commit 3c5e4e2

Browse files
authored
Allow to configure the exposed port for the core container (#310)
* Allow to configure the exposed port for the core container * Comment settings for exposed core port
1 parent 7929145 commit 3c5e4e2

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ services:
9191
start_period: 30s
9292
start_interval: 30s
9393
ports:
94-
- "80:80"
95-
- "443:443"
94+
- "${CORE_HTTP_PORT:-80}:80"
95+
- "${CORE_HTTPS_PORT:-443}:443"
9696
volumes:
9797
- "./configs/:/var/www/MISP/app/Config/:Z"
9898
- "./logs/:/var/www/MISP/app/tmp/logs/:Z"

template.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ CRON_USER_ID=
5858
# defaults to 'https://localhost'
5959
# note: if you are exposing MISP on a non-standard port (i.e., the port is part of the URL you would use to access it, e.g., https://192.168.0.1:4433) you need to include the port in the BASE_URL variable
6060
BASE_URL=
61+
# defaults to 80 and 443, don't forget to update the base url if not the defaults one
62+
# CORE_HTTP_PORT=
63+
# CORE_HTTPS_PORT=
6164
# store settings in db except those that must stay in config.php. true/false, defaults to false
6265
ENABLE_DB_SETTINGS=
6366
# encryption key. defaults to empty string

0 commit comments

Comments
 (0)