Commit df8fcbf0 by Chavee Issariyapat

copy config to /vernemq/etc

parent 1aaff0e2
...@@ -50,7 +50,6 @@ EXPOSE 1883 8883 8008 44053 4369 8888 8008\ ...@@ -50,7 +50,6 @@ EXPOSE 1883 8883 8008 44053 4369 8888 8008\
VOLUME ["/vernemq/log", "/vernemq/data", "/vernemq/etc"] VOLUME ["/vernemq/log", "/vernemq/data", "/vernemq/etc"]
VOLUME ["/var/log/vernemq", "/var/lib/vernemq", "/etc/vernemq"]
# HEALTHCHECK CMD curl -s -f http://localhost:8888/health || false # HEALTHCHECK CMD curl -s -f http://localhost:8888/health || false
......
...@@ -135,6 +135,8 @@ sigterm_handler() { ...@@ -135,6 +135,8 @@ sigterm_handler() {
trap 'kill ${!}; siguser1_handler' SIGUSR1 trap 'kill ${!}; siguser1_handler' SIGUSR1
trap 'kill ${!}; sigterm_handler' SIGTERM trap 'kill ${!}; sigterm_handler' SIGTERM
# this copy of vernewmq use config file in /vernemq/etc
cp -Rf /etc/vernemq/* /vernemq/etc
/usr/sbin/setapikey.sh & /usr/sbin/setapikey.sh &
/vernemq/bin/vernemq start /vernemq/bin/vernemq start
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment