Skip to content

Instantly share code, notes, and snippets.

@angarsky
Created September 13, 2019 14:03
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 angarsky/81d198ffc3f41cde57dd8b8f849e708c to your computer and use it in GitHub Desktop.
Save angarsky/81d198ffc3f41cde57dd8b8f849e708c to your computer and use it in GitHub Desktop.
How to run app's code through a web server
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