curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
apt-cache policy docker-ce
sudo apt-get install -y docker-ce
sudo usermod -aG docker ${USER}
sudo curl -L https://github.com/docker/compose/releases/download/1.16.1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
npm install npm@latest -g
Executar os segunte comandos no terminal
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
sudo sh -c 'echo "\n127.0.0.1 evale.dev" >> /etc/hosts'
cp .env_example .env
docker-compose up -d
- Entrar no phpMyAdmin (evale.dev:8080) e criar o banco evale:
- Login: docker
- Senha: docker
- New >> Inserir nome [evale] >> Criar
docker exec -ti php.docker sh "/var/www/html/eVALE/deploy.sh" && npm install && npm run dev
- APP: http://evale.dev
- phpMyAdmin: http://evale.dev:8080