SKELETON WEB APP
DOCKER
ENVIRONNEMENT
- docker version: 19.03.8
- docker-compose version: 1.25.0
- cokpit version [https://cockpit-project.org/]: 215
POST INSTALL
#ubuntu
sudo apt install git
#alpine
apk add git
#Get repository
git clone --branch x.x.x https://github.com/stephendltg/skeleton-express
#Update repository
git pull
INSTALL DOCKER
#ubuntu
sh scripts/install-ubuntu.sh
#alpine
sh scripts/install-alpine.sh
DEPLOY APP
#ubuntu
sudo docker-compose up -d --build
#alpine
docker-compose up -d --build
And then point your browser to http://localhost:3000
.
You can then scale the server to multiple instances:
sudo docker-compose up -d --scale=server=3
TIPS DOCKER
LOG
docker logs --tail 1000 -f
RESTART
docker restart
BASH
docker exec -it bash
SSHD
docker run -d -p 22 /usr/sbin/sshd -D
INSPECT
docker inspect cd /var/lib/docker/volumes
CONTAINERS LIST
docker ps -a
VOLUMES LIST
docker volume ls
REMOVE VOLUMES NOT USED
docker volume prune
### LIST IMAGES
docker images -a
### DELETE IAMGE
CLEAN SYSTEME
Clean images, container, volumes & network not associated
docker system prune
Clean images, container, volumes & network
docker system prune -a