Created
January 24, 2018 10:14
-
-
Save uilian/23db79cdb06e102d03eecc547d00d3e3 to your computer and use it in GitHub Desktop.
docker-compose nginx
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
version: '2' | |
services: | |
web: | |
image: nginx:stable-alpine | |
volumes: | |
- ./code:/usr/share/nginx/html | |
ports: | |
- "8080:80" | |
environment: | |
- NGINX_HOST=localhost.com | |
- NGINX_PORT=80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment