File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -43,15 +43,15 @@ services:
43
43
ports :
44
44
# HTTP
45
45
- target : 80
46
- published : 80
46
+ published : ${HTTP_PORT:-80}
47
47
protocol : tcp
48
48
# HTTPS
49
49
- target : 443
50
- published : 443
50
+ published : ${HTTPS_PORT:- 443}
51
51
protocol : tcp
52
52
# HTTP/3
53
53
- target : 443
54
- published : 443
54
+ published : ${HTTP3_PORT:- 443}
55
55
protocol : udp
56
56
57
57
# Mercure is installed as a Caddy module, prevent the Flex recipe from installing another service
Original file line number Diff line number Diff line change @@ -31,3 +31,11 @@ Use the `SERVER_NAME` environment variable to define your custom server name(s).
31
31
SERVER_NAME="symfony.wip, caddy:80" docker-compose up --build
32
32
33
33
If you use Mercure, keep ` caddy:80 ` in the list to allow the PHP container to request the caddy service.
34
+
35
+ ## Using custom HTTP ports
36
+
37
+ Use the environment variables ` HTTP_PORT ` , ` HTTPS_PORT ` and/or ` HTTP3_PORT ` to adjust the ports to your needs, e.g.
38
+
39
+ HTTP_PORT=8000 HTTPS_PORT=4443 HTTP3_PORT=4443 docker-compose up --build
40
+
41
+ to access your appplication on [ https://localhost:4443 ] ( https://localhost:4443 ) .
You can’t perform that action at this time.
0 commit comments