update aws readme with docker info

This commit is contained in:
ronnyabraham 2020-03-02 22:33:44 +02:00
parent e51571951d
commit f28833bb78

View file

@ -21,6 +21,11 @@
[certbot webpage to install ssl certificates](https://certbot.eff.org)
#### docker
[ubuntu docker ce install](https://docs.docker.com/install/linux/docker-ce/ubuntu/)
[ubuntu docker compose install](https://docs.docker.com/compose/install/)
## adding/deleting users
@ -190,6 +195,9 @@ AWS has a sudo group that allows a user sudo priveleges
## postgres
### note:
if you are using docker for postgres, skip this and go to the docker section
#### links fix locale error with postgres
@ -229,14 +237,16 @@ AWS has a sudo group that allows a user sudo priveleges
6. test it by running: *psql -h* ***ip\_address*** *-U* ***username*** *-d* ***database***
7. e.g. psql -h 173.246.107.96 -U postgres postgres
### setup the /var/www directory
## setup the /var/www directory
cd /var
sudo mkdir www
sudo chgrp www-data www -R
sudo chmod g+w www -R
### install python packages
## install python packages
sudo apt-get install python-dev
sudo apt-get install python3-dev
@ -279,6 +289,47 @@ add the following:
echo "WORKON_HOME=~/.virtualenvs" >> .bashrc
echo ". /usr/local/bin/virtualenvwrapper.sh" >> .bashrc
## Docker
### docker
##### uninstall old (if necessary)
sudo apt-get remove docker docker-engine docker.io containerd runc
##### set up apt-get
sudo apt-get update
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
##### verify install
check that fingerprint key "9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88" is the same
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
##### install repository
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
##### install docker
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
### docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
## nginx