Docker Compose
Last updated
Was this helpful?
Last updated
Was this helpful?
A docker-compose.yml file is included for easier deployment via or . This allows you to keep all the required settings in one place, instead of depending on remembering the docker run command parameters to use.
You must edit the docker-compose.yml file to suit your environment.
At a minimum, you must replace <path to data>
with the path on the host system or a docker volume to store persistent data in. The path can be absolute or relative to the directory you are launching the container from eg:
Before and equal TAG 21.4.0-v5
or
With TAG after 21.4.0-v5
By default only the web interface is exposed on port 8080. You can change 8080 to a different port if 8080 is already in use on your docker host. Two additional ports are disabled by default and can be turned on if needed. Just remove the #
at the start of the line.
If using remote sensors, uncomment the line - "2222:22" # SSH for remote sensors"
to allow access to SSH.
If using external tools to access the database, uncomment the -"5432:5432" # Access PostgreSQL database from external tools"
line.
Run docker-compose up -d
in the directory with the docker-compose.yml file.
When new containers are released, you can upgrade by running:
You can change the environment variables listed. They are already set to their default values. Each setting is documented in . Note that DB_PASSWORD='none'
does not set a password at all (doesn't set it to 'none').