sudo apt update -y
sudo apt upgrade -y
sudo apt install -y docker.io
sudo groupadd docker
sudo usermod -aG docker `whoami`
sudo apt install -y docker-compose
mkdir /opt/cardano/
cd /opt/cardano/
git clone https://github.com/truongcaoxuan/cnode-docker-compose.git
cd cnode-docker-compose
git clone https://github.com/truongcaoxuan/prometheus_bot.git
# fork from https://github.com/inCaller/prometheus_bot.git
- /opt/cardano/cnode-docker-compose/prometheus/prometheus.yml
- /opt/cardano/cnode-docker-compose/alertmanager/alertmanager.yml
- /opt/cardano/cnode-docker-compose/telegrambot/config.yaml
- /opt/cardano/cnode-docker-compose/proxy/nginx/nginx.conf
Use .env config
cd /opt/cardano/cnode-docker-compose
docker-compose config
docker-compose up -d
Use .env.core config
docker-compose --env-file .env.core config
docker-compose --env-file .env.core up -d
Use .env.relay config
docker-compose --env-file .env.relay config
docker-compose --env-file .env.relay up -d
docker-compose down
docker rm -f $(docker ps -a -q)
docker volume rm $(docker volume ls -q)