Skip to content

Commit 44e7ae5

Browse files
committed
Docker: fixed mongodb path not exists bug.
1 parent 745a44b commit 44e7ae5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ RUN useradd -r -M -U -d /opt/countly -s /bin/false countly && \
1010
echo "countly ALL=(ALL) NOPASSWD: /usr/bin/sv restart countly-api countly-dashboard" >> /etc/sudoers.d/countly && \
1111
/opt/countly/bin/countly.install.sh
1212

13-
## Add MongoDB data volume
13+
## Add MongoDB data volume
1414
VOLUME ["/var/lib/mongodb"]
1515

1616
# Change MongoDB folder permissions and add services folders
17-
RUN chown -R mongodb:mongodb /data && \
17+
RUN chown -R mongodb:mongodb /var/lib/mongodb && \
1818
mkdir /etc/service/mongodb && \
1919
mkdir /etc/service/nginx && \
2020
mkdir /etc/service/countly-api && \

0 commit comments

Comments
 (0)