File tree Expand file tree Collapse file tree 17 files changed +101
-52
lines changed Expand file tree Collapse file tree 17 files changed +101
-52
lines changed Original file line number Diff line number Diff line change 1
- 2.10.2
1
+ 2.10.3
Original file line number Diff line number Diff line change 1
1
<p align =" center " >
2
2
<img src="https://nginxproxymanager.com/github.png">
3
3
<br><br>
4
- <img src="https://img.shields.io/badge/version-2.10.2 -green.svg?style=for-the-badge">
4
+ <img src="https://img.shields.io/badge/version-2.10.3 -green.svg?style=for-the-badge">
5
5
<a href="https://hub.docker.com/repository/docker/jc21/nginx-proxy-manager">
6
6
<img src="https://img.shields.io/docker/stars/jc21/nginx-proxy-manager.svg?style=for-the-badge">
7
7
</a>
Original file line number Diff line number Diff line change @@ -10,9 +10,13 @@ ARG BUILD_VERSION
10
10
ARG BUILD_COMMIT
11
11
ARG BUILD_DATE
12
12
13
+ # See: https://github.com/just-containers/s6-overlay/blob/master/README.md
13
14
ENV SUPPRESS_NO_CONFIG_WARNING=1 \
14
- S6_FIX_ATTRS_HIDDEN=1 \
15
15
S6_BEHAVIOUR_IF_STAGE2_FAILS=1 \
16
+ S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
17
+ S6_FIX_ATTRS_HIDDEN=1 \
18
+ S6_KILL_FINISH_MAXTIME=10000 \
19
+ S6_VERBOSITY=1 \
16
20
NODE_ENV=production \
17
21
NPM_BUILD_VERSION="${BUILD_VERSION}" \
18
22
NPM_BUILD_COMMIT="${BUILD_COMMIT}" \
Original file line number Diff line number Diff line change 1
1
FROM jc21/nginx-full:certbot-node
2
2
LABEL maintainer="Jamie Curnow <jc@jc21.com>"
3
3
4
- ENV S6_LOGGING=0 \
5
- SUPPRESS_NO_CONFIG_WARNING=1 \
6
- S6_FIX_ATTRS_HIDDEN=1
4
+ # See: https://github.com/just-containers/s6-overlay/blob/master/README.md
5
+ ENV SUPPRESS_NO_CONFIG_WARNING=1 \
6
+ S6_BEHAVIOUR_IF_STAGE2_FAILS=1 \
7
+ S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0 \
8
+ S6_FIX_ATTRS_HIDDEN=1 \
9
+ S6_KILL_FINISH_MAXTIME=10000 \
10
+ S6_VERBOSITY=2
7
11
8
12
RUN echo "fs.file-max = 65535" > /etc/sysctl.conf \
9
13
&& apt-get update \
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ services:
35
35
DB_SQLITE_FILE : ' /data/mydb.sqlite'
36
36
PUID : 1000
37
37
PGID : 1000
38
+ DISABLE_IPV6 : ' true'
38
39
volumes :
39
40
- npm_data:/data
40
41
expose :
Original file line number Diff line number Diff line change @@ -12,6 +12,11 @@ export CYAN BLUE YELLOW RED RESET
12
12
PUID=${PUID:- 0}
13
13
PGID=${PGID:- 0}
14
14
15
+ NPMUSER=npm
16
+ NPMGROUP=npm
17
+ NPMHOME=/tmp/npmuserhome
18
+ export NPMUSER NPMGROUP NPMHOME
19
+
15
20
if [[ " $PUID " -ne ' 0' ]] && [ " $PGID " = ' 0' ]; then
16
21
# set group id to same as user id,
17
22
# the user probably forgot to specify the group id and
@@ -40,3 +45,10 @@ log_fatal () {
40
45
/run/s6/basedir/bin/halt
41
46
exit 1
42
47
}
48
+
49
+ # param $1: group_name
50
+ get_group_id () {
51
+ if [ " ${1:- } " != ' ' ]; then
52
+ getent group " $1 " | cut -d: -f3
53
+ fi
54
+ }
Original file line number Diff line number Diff line change 1
1
# run nginx in foreground
2
2
daemon off ;
3
3
pid /run/nginx/nginx.pid;
4
- user npmuser ;
4
+ user npm ;
5
5
6
6
# Set number of worker processes automatically based on number of CPU cores.
7
7
worker_processes auto;
Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ cd /app || exit 1
10
10
log_info 'Starting backend ...'
11
11
12
12
if [ "${DEVELOPMENT:-}" = 'true' ]; then
13
- s6-setuidgid npmuser yarn install
14
- exec s6-setuidgid npmuser bash -c ' export HOME=/tmp/npmuserhome ;node --max_old_space_size=250 --abort_on_uncaught_exception node_modules/nodemon/bin/nodemon.js'
13
+ s6-setuidgid "$PUID:$PGID" yarn install
14
+ exec s6-setuidgid "$PUID:$PGID" bash -c " export HOME=$NPMHOME ;node --max_old_space_size=250 --abort_on_uncaught_exception node_modules/nodemon/bin/nodemon.js"
15
15
else
16
16
while :
17
17
do
18
- s6-setuidgid npmuser bash -c ' export HOME=/tmp/npmuserhome ;node --abort_on_uncaught_exception --max_old_space_size=250 index.js'
18
+ s6-setuidgid "$PUID:$PGID" bash -c " export HOME=$NPMHOME ;node --abort_on_uncaught_exception --max_old_space_size=250 index.js"
19
19
sleep 1
20
20
done
21
21
fi
Original file line number Diff line number Diff line change 8
8
if [ "$DEVELOPMENT" = 'true' ]; then
9
9
. /bin/common.sh
10
10
cd /app/frontend || exit 1
11
- HOME=/tmp/npmuserhome
11
+ HOME=$NPMHOME
12
12
export HOME
13
13
mkdir -p /app/frontend/dist
14
14
chown -R "$PUID:$PGID" /app/frontend/dist
15
15
16
16
log_info 'Starting frontend ...'
17
- s6-setuidgid npmuser yarn install
18
- exec s6-setuidgid npmuser yarn watch
17
+ s6-setuidgid "$PUID:$PGID" yarn install
18
+ exec s6-setuidgid "$PUID:$PGID" yarn watch
19
19
else
20
20
exit 0
21
21
fi
Original file line number Diff line number Diff line change 6
6
. /bin/common.sh
7
7
8
8
log_info 'Starting nginx ...'
9
- exec s6-setuidgid npmuser nginx
9
+ exec s6-setuidgid "$PUID:$PGID" nginx
You can’t perform that action at this time.
0 commit comments