Prepare a host with the following:
- git
- docker
- docker-compose
- python + pyyaml
- hostname set to hub.crmdr.org
- static DNS NS records pointing at the host IP for subdomain hub.crmdr.org, e.g.:
Onezone will handle the requests for the domain using the build-in DNS server, which enables subdomain delegation for subject Oneproviders (you can find out more here).
hub.crmdr.org. 120 IN NS ns1.hub.crmdr.org ns1.hub.crmdr.org. 120 IN A 212.189.205.193
- Place your auth.config in
data/secret/auth.config
- see OpenID & SAML for more - Verify that
data/configs/overlay.config
includes desired and up-to-date config - Run
./onezone.sh start
(see onezone.sh) - The installation should happen automatically (batch mode) and might take a while (consult container logs for indication whether the installation was finished)
- Visit https://hub.crmdr.org and log in using the credentials
admin:EMERGENCY_PASSPHRASE
(can be found indata/secret/emergency-passphrase.txt
)
The Onezone docker is configured to restart automatically.
You can use the onezone.sh
script to easily start / stop the deployment and
for some convenient commands allowing to exec to the container or view the logs.
Regularly back-up the persistence directory: data/persistence
.
To upgrade, stop the deployment (./onezone.sh stop
), bump the onezone image
version in docker-compose.yaml
and start the deployment (./onezone.sh start
).
Make sure to back-up the persistence directory beforehand.
If you modify anything (e.g. onezone image), please commit the changes rather than make them only locally on the host.
Please refer to the documentation.