... | @@ -125,11 +125,25 @@ Acesse a documentação da Amazon AWS: https://docs.aws.amazon.com/AWSEC2/latest |
... | @@ -125,11 +125,25 @@ Acesse a documentação da Amazon AWS: https://docs.aws.amazon.com/AWSEC2/latest |
|
|
|
|
|
4. Instalar na instância Git, NodeJS, Docker, Docker-Compose e PM2
|
|
4. Instalar na instância Git, NodeJS, Docker, Docker-Compose e PM2
|
|
|
|
|
|
Digite:
|
|
- Comandos:
|
|
|
|
```bash
|
|
> sudo yum install git
|
|
$ sudo yum update
|
|
|
|
$ sudo yum install -y docker
|
|
> curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
|
|
$ sudo usermod -a -G docker ec2-user
|
|
|
|
$ sudo service docker start
|
|
|
|
$ sudo chkconfig docker on
|
|
|
|
$ sudo curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-`uname -s`-`uname -m` | sudo tee /usr/local/bin/docker-compose > /dev/null
|
|
|
|
$ sudo chmod +x /usr/local/bin/docker-compose
|
|
|
|
$ ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
|
|
|
|
$ sudo yum install git
|
|
|
|
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
|
|
|
|
$
|
|
|
|
```
|
|
|
|
- Desconecte da instância e conecte novamente, então:
|
|
|
|
```bash
|
|
|
|
$ nvm install v13.12.0
|
|
|
|
$ npm install pm2 -g
|
|
|
|
```
|
|
|
|
|
|
5. Realizar o deploy do PostgreSQL usando Docker e Docker-Compose
|
|
5. Realizar o deploy do PostgreSQL usando Docker e Docker-Compose
|
|
|
|
|
... | | ... | |