-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Login as root
apt update
apt upgrade
adduer hicdex
usermod -aG sudo hicdex
Exit
ssh [email protected]
sudo apt install git
INSTALL DOCKER https://docs.docker.com/engine/install/ubuntu/
sudo apt-get update
sudo apt-get install \apt-transport-https \ca-certificates \curl \gnupg \lsb-release
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \ "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable"| sudo tee /etc/apt/sources.list.d/docker.list >/dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
#test docker
sudo docker run hello-world
#install docker-compose https://docs.docker.com/compose/install/
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
#download hicdex source
git clone https://github.com/IntegroLabs/hicdex.git
#download hicdex metadata
git clone https://github.com/IntegroLabs/hicdex-metadata.git
#prepare compose cd hicdex
nano docker-compose.yml
FIND
- /foo/hicdex-metadata:/home/dipdup/metadata
CHANGE TO
- /home/hicdex/hicdex-metadata:/home/dipdup/metadata
FIND
- /foo/pg:/var/lib/postgresql/data
CHANGE TO
- /home/hicdex/pg:/var/lib/postgresql/data
FIND AND UNCOMMENT under hasura
# ports:
# - 8081:8080
TODO ENV VAR SETUP Currently editing docker-compose for uses of following values as this did not appear to work
https://docs.docker.com/compose/environment-variables/
POSTGRES_PASSWORD ADMIN_SECRET
Editing complete return to prompt
cd ~/hicdex
sudo docker-compose build --no-cache --pull hicdex
sudo docker-compose up -d hasura
sudo docker-compose up hicdex
There is no need to start caddy for teztools deployments as the load balancer uses Hasura's endpoints directly.
Database currently takes about 2-2.5 days to sync up to current day.
There is no bootstrap/backup restore process aside from machine image backup/restore
Caddy Config for basic reverse proxy
version: "3.8"
services:
caddy:
image: caddy:2.4.0-alpine
restart: always
ports:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- /opt/caddy_data:/data
- /opt/caddy_config:/config