You should already have your own (for gitlab, …)
But in case, you generate a new pair like this:
ssh-keygen -t rsa
ssh <server-name> pubkeys add '"'"$(cat ~/.ssh/id_rsa)"'"'
Give the private key location when creating the release with create-release
.
Although heavily based on stefanprodan's dockerprom, this project integrates some specificities:
- adaptations for the creation of dca archives for easy deployment on a capp server.
- deletion of caddy reverse proxy: capp nginx proxy will replace it on deployment.
Two configurations are provided:
example
to copy asstaging
orprod
environment.dev
for local testing. For local testing, please make sure that docker-compose has access to the./confs/dev/context
directory, as seen in the following chapter.
For each configuration, please update the password and username data in confs/ENV/context/config
file before deployment.
First run:
./create-docker-envs-json
For dev environment, a reverse proxy is needed.
We use caddy, that we added in context/docker-compose.dev.yml
. Launch the service by combining the two compose files:
TODO
cp -r context/healthchecker ../confs/dev/
docker-compose -f docker-compose.yml -f docker-compose.dev.yml --project-directory $PWD/../confs/dev/context up -d
A monitoring solution for Docker hosts and containers with Prometheus, Grafana, cAdvisor, NodeExporter, Capp Healthchecker and alerting with AlertManager.
Containers:
- Prometheus (metrics database)
- NodeExporter (host metrics collector)
- cAdvisor (containers metrics collector)
- Capp Healthchecker (container health status collector)
- AlertManager (alerts management)
- Grafana (visualize metrics)
Navigate to https://monitoring.<server-name>
and login with user admin password admin. You can change the credentials in the compose file or by supplying the ADMIN_USER
and ADMIN_PASSWORD
environment variables on compose up.