Docker Setup
Zendrite provides an example Docker compose file in build/docker/docker-compose.yaml, which needs some preparation to start successfully.
Please note that this compose file only has Postgres as a dependency, and you need to configure a reverse proxy.
Docker images are available from:
- Docker Hub:
pats22/zendrite - Codefloe Registry:
codefloe.com/pat-s/zendrite
Preparations
Section titled “Preparations”Generate a private key
Section titled “Generate a private key”First we’ll generate a private key, which is used to sign events.
The following will create one in ./config:
(NOTE: This only needs to be executed once, as you otherwise overwrite the key)
Generate a config
Section titled “Generate a config”Similar to the command above, we can generate a config to be used, which will use the correct paths as specified in the example docker-compose file.
Change server to your domain and db according to your changes to the docker-compose file (services.postgres.environment values):
You can then change config/zendrite.yaml to your liking.
Starting Zendrite
Section titled “Starting Zendrite”Once you’re done changing the config, you can now start up Zendrite with