File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -51,10 +51,6 @@ RUN apk add --no-cache \
51
51
postgresql-libs \
52
52
ttf-ubuntu-font-family
53
53
54
- RUN addgroup -S -g 101 netbox \
55
- && adduser -DHS -u 101 netbox \
56
- && adduser netbox netbox
57
-
58
54
WORKDIR /opt
59
55
60
56
COPY --from=builder /install /usr/local
@@ -73,10 +69,11 @@ COPY configuration/configuration.py /etc/netbox/config/configuration.py
73
69
WORKDIR /opt/netbox/netbox
74
70
75
71
# Must set permissions for '/opt/netbox/netbox/static' directory
76
- # to a +w so that `./manage.py collectstatic` can be executed during
72
+ # to g +w so that `./manage.py collectstatic` can be executed during
77
73
# container startup.
78
- # Not satisfying
79
- RUN mkdir static && chmod a+w static media
74
+ # Must set permissions for '/opt/netbox/netbox/media' directory
75
+ # to g+w so that pictures can be uploaded to netbox.
76
+ RUN mkdir static && chmod g+w static media
80
77
81
78
ENTRYPOINT [ "/opt/netbox/docker-entrypoint.sh" ]
82
79
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ services:
7
7
- redis
8
8
- netbox-worker
9
9
env_file : env/netbox.env
10
- user : netbox
10
+ user : ' 101 '
11
11
volumes :
12
12
- ./startup_scripts:/opt/netbox/startup_scripts:z,ro
13
13
- ./initializers:/opt/netbox/initializers:z,ro
You can’t perform that action at this time.
0 commit comments