sudo tee /etc/yum.repos.d/docker.repo <<-'EOF'
[dockerrepo]
name=Docker Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/7/
enabled=1
gpgcheck=1
gpgkey=https://yum.dockerproject.org/gpg
EOF
sudo yum install docker-engine
curl -L https://github.com/docker/compose/releases/download/1.8.1/run.sh > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
sudo systemctl enable docker.service
systemctl start docker
docker-compose --version
docker load < nginx.tar
docker-compose.yml
version: '2'
services:
nginx:
restart: always
image: nginx:1.11.1-alpine
volumes:
- /data:/data
- /data/app/nginx:/etc/nginx
ports:
- "80:80"
- "82:82"
- "8181:81"
php7:
restart: always
image: php7worker:latest
ports:
- "9100:9000"
volumes:
- /data/app/php7:/etc/php7
- /etc/localtime:/etc/localtime
- /data:/data