File tree 4 files changed +8
-4
lines changed
4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 48
48
49
49
ENV TFTPD_OPTS=''
50
50
ENV NGINX_PORT='80'
51
+ ENV WEB_APP_PORT='3000'
51
52
52
53
EXPOSE 69/udp
53
54
EXPOSE 80
Original file line number Diff line number Diff line change @@ -58,7 +58,8 @@ docker run -d \
58
58
--name=netbootxyz \
59
59
-e MENU_VERSION=2.0.76 ` # optional` \
60
60
-e NGINX_PORT=80 ` # optional` \
61
- -p 3000:3000 ` # sets webapp port` \
61
+ -e WEB_APP_PORT=3000 ` # optional` \
62
+ -p 3000:3000 ` # sets web configuration interface port, destination should match ${WEB_APP_PORT} variable above.` \
62
63
-p 69:69/udp ` # sets tftp port` \
63
64
-p 8080:80 ` # optional, destination should match ${NGINX_PORT} variable above.` \
64
65
-v /local/path/to/config:/config ` # optional` \
@@ -112,6 +113,7 @@ Container images are configured using parameters passed at runtime (such as thos
112
113
| ` -p 3000 ` | Web configuration interface. |
113
114
| ` -p 69/udp ` | TFTP Port. |
114
115
| ` -p 80 ` | NGINX server for hosting assets. |
116
+ | ` -e WEB_APP_PORT=3000 ` | Specify a different port for the web configuration interface to listen on. |
115
117
| ` -e NGINX_PORT=80 ` | Specify a different port for NGINX service to listen on. |
116
118
| ` -e MENU_VERSION=2.0.76 ` | Specify a specific version of boot files you want to use from netboot.xyz (unset pulls latest) |
117
119
| ` -v /config ` | Storage for boot menu files and web application config |
Original file line number Diff line number Diff line change @@ -7,11 +7,12 @@ services:
7
7
environment:
8
8
- MENU_VERSION=2.0.47 # optional
9
9
- NGINX_PORT=80 # optional
10
+ - WEB_APP_PORT=3000 # optional
10
11
volumes:
11
12
- /path/to/config:/config # optional
12
13
- /path/to/assets:/assets # optional
13
14
ports:
14
- - 3000:3000
15
+ - 3000:3000 # optional, destination should match ${WEB_APP_PORT} variable above.
15
16
- 69:69/udp
16
- - 8080:80 # optional, destination should match ${NGINX_PORT} variable above.
17
+ - 8080:80 # optional, destination should match ${NGINX_PORT} variable above.
17
18
restart: unless-stopped
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ daemon=off
15
15
priority = 2
16
16
17
17
[program:webapp]
18
- environment=NODE_ENV="production",PORT=3000
18
+ environment=NODE_ENV="production",PORT=%(ENV_WEB_APP_PORT)s
19
19
command=/usr/bin/node app.js
20
20
user=nbxyz
21
21
directory=/app
You can’t perform that action at this time.
0 commit comments