Last active
June 4, 2024 18:20
-
-
Save spensireli/e4f8ff7e15af13caf47ebc6ae0095947 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum install docker -y | |
sudo systemctl enable docker | |
sudo systemctl start docker | |
sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m) -o /bin/docker-compose | |
sudo chmod 755 /bin/docker-compose | |
cat << EOF > docker-compose.yml | |
web: | |
image: nginx | |
ports: | |
- "80:80" | |
environment: | |
- NGINX_PORT=80 | |
EOF | |
sudo /bin/docker-compose up -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment