Deploying Seacat Auth in Docker environment
… using Docker Compose
- Create a site directory in
/opton the target machine (or LXC container, or other site).
/opt/site-[name] seacatauth-conf/ seacatauth.conf nginx-conf/ nginx.conf nginx-root/ index.html seacat-auth-webui/ seacat-webui/ log/ docker-compose.yml
docker-compose.ymlfrom this documentation into the root of site directory:
- Adjust the
docker-compose.ymlfile to specify Docker image versions if necessary
- Install Web UIs (TODO: download from GitLab, place in the proper folder)
- Copy and adjust the
seacatauth-conf/seacatauth.conffile (example provided in the documentation directory)
- Configure NGINX in
docker-compose up -din the
- Optionally, setup auto-start after host system reboot
Finally, proceed to the Seacat Auth provisioning guide for instructions on how to set up initial users, tenants etc.
(TODO - review and adjust based on the practical exercise)
Generate self-signed certificates for NGINX
If a self-signed certificate is needed, you can generate it in the
by executing the following command:
openssl req -x509 -newkey rsa:4096 -keyout nginx-conf/key.pem -out nginx-conf/cert.pem -days 365 -nodes
Note: OpenSSL has to be installed on the host system.