|
@@ -107,9 +107,9 @@ RUN set -xe; \
|
|
# Undo symlinks to /var/log and /var/lib
|
|
# Undo symlinks to /var/log and /var/lib
|
|
rmdir /var/lib/couchdb /var/log/couchdb; \
|
|
rmdir /var/lib/couchdb /var/log/couchdb; \
|
|
rm /opt/couchdb/data /opt/couchdb/var/log; \
|
|
rm /opt/couchdb/data /opt/couchdb/var/log; \
|
|
- mkdir -p /opt/couchdb/data /opt/couchdb/var/log; \
|
|
|
|
- chown couchdb:couchdb /opt/couchdb/data /opt/couchdb/var/log; \
|
|
|
|
- chmod 777 /opt/couchdb/data /opt/couchdb/var/log; \
|
|
|
|
|
|
+ mkdir -p /app/data/data /app/data/log; \
|
|
|
|
+ chown couchdb:couchdb /app/data/data /app/data/log; \
|
|
|
|
+ chmod 777 /app/data/data /app/data/log; \
|
|
# Remove file that sets logging to a file
|
|
# Remove file that sets logging to a file
|
|
rm /opt/couchdb/etc/default.d/10-filelog.ini; \
|
|
rm /opt/couchdb/etc/default.d/10-filelog.ini; \
|
|
rm -rf /var/lib/apt/lists/*
|
|
rm -rf /var/lib/apt/lists/*
|
|
@@ -123,10 +123,10 @@ ENTRYPOINT ["tini", "--", "/docker-entrypoint.sh"]
|
|
|
|
|
|
# Setup directories and permissions
|
|
# Setup directories and permissions
|
|
RUN chown -R couchdb:couchdb /opt/couchdb/etc/default.d/ /opt/couchdb/etc/vm.args
|
|
RUN chown -R couchdb:couchdb /opt/couchdb/etc/default.d/ /opt/couchdb/etc/vm.args
|
|
-VOLUME /opt/couchdb/data
|
|
|
|
|
|
+#VOLUME /opt/couchdb/data
|
|
|
|
|
|
# 5984: Main CouchDB endpoint
|
|
# 5984: Main CouchDB endpoint
|
|
# 4369: Erlang portmap daemon (epmd)
|
|
# 4369: Erlang portmap daemon (epmd)
|
|
# 9100: CouchDB cluster communication port
|
|
# 9100: CouchDB cluster communication port
|
|
-EXPOSE 5984 4369 9100
|
|
|
|
|
|
+#EXPOSE 5984 4369 9100
|
|
CMD ["/opt/couchdb/bin/couchdb"]
|
|
CMD ["/opt/couchdb/bin/couchdb"]
|