Docker
Docker images are available on Docker hub.
The database files are stored under /opt/spt/data
. If you wish to persist the database, volume mount this location.
It is possible to run the integration tests against the docker container instead of the service running locally.
Configuration
The following custom environment variables can be used to customise the container (the standard variables also work):
CONFIG_FILE
- The JSON file (volume mount) with full configuration. All other variables/options are ignored.HTTP_PORT
- The port to run the HTTP/2 service on. Default6020
.TCP_PORT
- The port to run the TCP service on. Default2020
.NOTIFY_PORT
- The port to run the notification service on. Default2120
THREADS
- The number of threads to use for the services. Default4
.LOG_LEVEL
- The level to use for logging. One ofdebug|info|warn|critical
. Defaultinfo
.ENABLE_CACHE
- Use to turn off temporary value caching. Defaulttrue
.ENABLE_SSL
- Use to run SSL services. Defaultfalse
.ENCRYPTION_SECRET
- Use to specify the secret used to AES encrypt values. Default is internal to the system.PEERS
- Use to enable notifications on theNOTIFY_PORT
. Listeners will be started to listen for notifications from thePEERS
. Will also enable publishing notifications from this instance.