Created
October 9, 2021 16:04
-
-
Save curx/d8b932791a53f6ff519e71addf16c16f to your computer and use it in GitHub Desktop.
a simple docker-compose with a nginx webserver
This file contains hidden or 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
| # a simple dockerized nginx webserver | |
| version: '3' | |
| services: | |
| webserver: | |
| container_name: webserver | |
| image: docker.io/library/nginx:1.21-alpine | |
| ports: | |
| - 80:80 | |
| volumes: | |
| - htdocs:/usr/share/nginx/html:rw | |
| volumes: | |
| htdocs: {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment