Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Commit 5c751bd

Browse files
authored
Make HTTP port configurable via HTTP_PORT environment variable (#72)
The HTTPS port was already configurable via HTTPS_PORT, but the HTTP port was hardcoded to 80. This made it impossible to run multiple Canasta instances on the same machine without port conflicts. This change makes HTTP_PORT configurable in .env (defaulting to 80), matching the existing pattern for HTTPS_PORT. This allows users to run multiple Canasta instances on the same machine by using different port combinations (e.g., 8080/8443 for a second instance).
1 parent 4dffa21 commit 5c751bd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
HTTP_PORT=80
12
HTTPS_PORT=443
23
MYSQL_PASSWORD=mediawiki
34
MW_SITE_SERVER=https://localhost

docker-compose.override.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ services:
1111
#elasticsearch:
1212
caddy:
1313
ports:
14-
- "80:80"
14+
- "${HTTP_PORT:-80}:80"
1515
- "${HTTPS_PORT:-443}:443"
1616
#varnish:

0 commit comments

Comments
 (0)