Created
September 13, 2019 14:03
-
-
Save angarsky/81d198ffc3f41cde57dd8b8f849e708c to your computer and use it in GitHub Desktop.
How to run app's code through a web server
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: | |
nginx: | |
image: nginx | |
ports: | |
- 8888:80 | |
volumes: | |
- ./:/usr/share/nginx/html | |
restart: always | |
container_name: web-server | |
# create a docker-compose.yml file | |
# put the file into an app folder | |
# docker-compose up -d | |
# http://localhost:8888/ | |
# docker-compose down |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment