-
Notifications
You must be signed in to change notification settings - Fork 807
Home
Instalação do Docker no Linux Ubuntu: https://docs.docker.com/engine/install/ubuntu/
sudo docker volume create app
sudo docker volume create data
sudo docker run -e MYSQL_ROOT_PASSWORD=Senha123 -e MYSQL_DATABASE=meubanco --name mysql-A -d -p 3306:3306 --mount type=volume,src=data,dst=/var/lib/mysql/ mysql:5.7
/var/lib/docker/volumes/app/_data
sudo docker run --name web-server -dt -p 8080:80 --mount type=volume,src=app,dst=/app/ webdevops/php-apache:alpine-php7
docker rm --force web-server
sudo docker swarm init sudo docker swarm join sudo docker node ls
sudo docker service create --name web-server --replicas 10 -dt -p 80:80 --mount type=volume,src=app,dst=/app/ webdevops/php-apache:alpine-php7
sudo docker service ps web-server
sudo apt-get install nfs-server
sudo nano /etc/exports
/var/lib/docker/volumes/app/_data *(rw,sync,subtree_check)
sudo exportfs -ar
sudo apt-get install nfs-common
sudo mount -o v3 172.31.0.54:/var/lib/docker/volumes/app/_data /var/lib/docker/volumes/app/_data
docker build -t proxy-app .
docker container run --name my-proxy-app -dti -p 4500:4500 proxy-app