Guys I have set the zwavejs2mqtt in a docker and started it using the yaml file below using docker-compose up --detach. How can I upgrade without loosing any changes?
services:
zwavejs2mqtt:
container_name: zwavejs2mqtt
image: zwavejs/zwavejs2mqtt:latest
restart: always
tty: true
stop_signal: SIGINT
environment:
- SESSION_SECRET=mysupersecretkey
- ZWAVEJS_EXTERNAL_CONFIG=/usr/src/app/store/.config-db
# Uncomment if you want logs time and dates to match your timezone instead of UTC
# Available at https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
#- TZ=America/New_York
- TZ=Asia/Nicosia
networks:
- zwave
devices:
# Do not use /dev/ttyUSBX serial devices, as those mappings can change over time.
# Instead, use the /dev/serial/by-id/X serial device for your Z-Wave stick.
- '/dev/zwave:/dev/zwave'
volumes:
- zwave-config:/usr/src/app/store
ports:
- '8091:8091' # port for web interface
- '3000:3000' # port for Z-Wave JS websocket server
networks:
zwave:
volumes:
zwave-config:
name: zwave-config
I interpreted the question as how to prevent loosing data.
I use portainer also as @Giel538 stated he does; this is by far the easiest way to do it; but if you don’t have portainer then:
(depending on how you set up docker you may need ‘sudo’ in front of the below commands)
This command will download the latest image