- sudo apt-get install
apt-transport-https
ca-certificates
curl
gnupg2
software-properties-common - curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
- sudo add-apt-repository
"deb [arch=amd64] https://download.docker.com/linux/debian
$(lsb_release -cs)
stable" - sudo apt-get update
- sudo apt-get install docker-ce
- apt-cache madison docker-ce - sudo docker run hello-world - sudo docker run armhf/hello-world
- sudo -i curl -L https://github.com/docker/compose/releases/download/$dockerComposeVersion/docker-compose-`uname -s
-
uname -m` -o /usr/local/bin/docker-compose - sudo chmod +x /usr/local/bin/docker-compose
- docker-compose --version
- sudo apt-get install git
- sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt --depth=1
- docker network create men_default
- service-apache
- service-mariadb
- service-pma (PhpMyAdmin)
- service-node
- service-mongo
- service-mongo-webadmin (Webtool for MongoDB)
- ./apache-php7/var/www/html
- ./apache-php7/sites-enabled
- ./apache-php7/fail2ban/jail.local
- ./apache-php7/iptables/firewall.sh
- ./apache-php7/letsencrypt/ssl-renewal.sh
- ./mariadb/shared
- DEV_PROJECT_PATH=./apache-php7/var/www/html
- DEV_VHOST_PATH=./apache-php7/sites-enabled
- MYSQL_DATA_PATH=./mariadb/shared
- MYSQL_ROOT_PASSWORD=XXX
- LETSENCRYPT_PATH=/etc/letsencrypt
- LETSENCRYPT_LIB=/var/lib/letsencrypt
docker-compose build
docker-compose up -d
docker-compose restart
docker-compose down
docker-compose restart
docker images
docker ps
docker exec -i service-node bash
pm2 start projectpath
sudo /opt/letsencrypt/letsencrypt-auto --apache -d mondomaine.fr
Crontab based on ssl-renewal.sh, is he defined to exec
sudo crontab -e 0 0 1 * 1 /usr/local/sbin/ssl-renewal mondomaine.fr --post-hook "service apache2 restart" >> ~/var/log/ssl-renewal.log
docker exec -i service-apache bash
service apache2 restart
ssh-copy-id -i ~/.ssh/id_rsa.pub $utilisateur_distant@$hôte_distant
cap production:deploy