Skip to content

Instantly share code, notes, and snippets.

@kingpabel
Created November 27, 2016 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kingpabel/594c7e7f1080adf12891e9d35073bf97 to your computer and use it in GitHub Desktop.
Save kingpabel/594c7e7f1080adf12891e9d35073bf97 to your computer and use it in GitHub Desktop.
//install docker
https://docs.docker.com/engine/installation/linux/ubuntulinux/
//install docker compose
https://docs.docker.com/compose/install/
//create a docker compose file which name will be "docker-compose.yml" and put below nginx image
web:
image: nginx:latest
ports:
- "8080:80"
//then run docker-compose up on that directory
//then run localhost:8080 and will get nginx index page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment