Docker running Nginx, PHP-FPM, MariaDB and Arionum cryptocurrency node
sudo bash install-docker-ce.sh
- create directory for persistent data
mkdir -p ~/data/arionum-mariadb-data/
-starts all containers in background
docker-compose up --build -d
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
- exposed port is 80
Open link at localhost:80 or your external IP address
- display running containers
docker ps
- locate php-fpm container id or container name and perform update
docker exec -ti <PHP_FPM_CONTAINER_ID> git pull
- or you can try to automaticaly select container id
docker exec -ti `docker ps|grep arionum|grep php-fpm|awk '{print $1}'` git pull
- manualy run sanity
docker exec -ti <PHP_FPM_CONTAINER_ID> php sanity.php
docker exec -ti `docker ps|grep arionum|grep php-fpm|awk '{print $1}'` php sanity.php
- remove sanity-lock
docker exec -ti <PHP_FPM_CONTAINER_ID> rm tmp/sanity-lock
docker exec -ti `docker ps|grep arionum|grep php-fpm|awk '{print $1}'` rm tmp/sanity-lock
- remove last 100 blocks
docker exec -ti <PHP_FPM_CONTAINER_ID> php util.php pop 100
docker exec -ti `docker ps|grep arionum|grep php-fpm|awk '{print $1}'` php util.php pop 100
- clean database
docker exec -ti <PHP_FPM_CONTAINER_ID> php util.php clean
docker exec -ti `docker ps|grep arionum|grep php-fpm|awk '{print $1}'` php util.php clean