File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,7 @@ WORKDIR /opt/netbox/netbox
94
94
# Must set permissions for '/opt/netbox/netbox/media' directory
95
95
# to g+w so that pictures can be uploaded to netbox.
96
96
RUN mkdir -p static /opt/unit/state/ /opt/unit/tmp/ \
97
+ && chown -R unit:root media /opt/unit/ \
97
98
&& chmod -R g+w media /opt/unit/ \
98
99
&& cd /opt/netbox/ && /opt/netbox/venv/bin/python -m mkdocs build \
99
100
--config-file /opt/netbox/mkdocs.yml --site-dir /opt/netbox/netbox/project-static/docs/ \
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ services:
9
9
env_file : env/netbox.env
10
10
environment :
11
11
SKIP_STARTUP_SCRIPTS : ${SKIP_STARTUP_SCRIPTS-false}
12
- user : ' 101 '
12
+ user : ' unit:root '
13
13
volumes :
14
14
- ./startup_scripts:/opt/netbox/startup_scripts:z,ro
15
15
- ./${INITIALIZERS_DIR-initializers}:/opt/netbox/initializers:z,ro
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ services:
8
8
- redis-cache
9
9
- netbox-worker
10
10
env_file : env/netbox.env
11
- user : ' 101 '
11
+ user : ' unit:root '
12
12
volumes :
13
13
- ./startup_scripts:/opt/netbox/startup_scripts:z,ro
14
14
- ./initializers:/opt/netbox/initializers:z,ro
Original file line number Diff line number Diff line change @@ -52,5 +52,5 @@ exec unitd \
52
52
--log /dev/stdout \
53
53
--state /opt/unit/state/ \
54
54
--tmp /opt/unit/tmp/ \
55
- --user 101 \
56
- --group 0
55
+ --user unit \
56
+ --group root
You can’t perform that action at this time.
0 commit comments