Docker deployment guide
This is a handy guide to deploying with Docker, as well as a breakdown of the on-premise deployment guide.
Versions​
- Stable version - 4.7.1/latest -
ghcr.io/tryzealot/zealot:latest
- Nightly version - develop -
ghcr.io/tryzealot/zealot:nightly
- Based on branchdevelop
builds per commit.
Registry​
- Docker Container Registry: https://hub.docker.com/r/tryzealot/zealot/
- Github Container Registry: https://github.com/tryzealot/zealot/pkgs/container/zealot (Recommended)
Step by Step​
Install Docker​
Follows official tutorial to install docker.
Install Docker-Compose​
Follows official tutorial to install docker-compose.
Configure .env file​
Download a sample config.env file and customize it on your own.
Configure site domain​
The secondary verification will remind again if it is not configured
Configure SSL certificate​
Provides three ways to do this, even if the last one generates the https protocol header:
- Using Let's Encrypt SSL
- Using Self-signed SSL
- Using non-SSL with Zealot service (needs gateway or reverse proxy to manage SSL)
Generate docker-compose.yml​
The configuration file will generate at least three services, using the first two certificates will add an additional service.
zealot-zealot
: Use reverse-generation gateway services to deliver core Web and API serviceszealot-postgres
: Database servicezealot-redis
: Cache service
Create docker volumes for persistent storage​
Persistent storage Data:
zealot-data
: Uploaded apps, icons and debug files.zealot-postgres
: Core database datazealot-redis
: Hot cache and background jobs data
Pull images​
The first time you use it, you will initialize the database, load the sample application data and set up the administrator account, which is required for subsequent zealot updates.
docker-compose pull