Skip to content

Instantly share code, notes, and snippets.

@morozow
Last active September 23, 2019 19:40
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 morozow/cfef9d86407f37e66ae52ccef50663ce to your computer and use it in GitHub Desktop.
Save morozow/cfef9d86407f37e66ae52ccef50663ce to your computer and use it in GitHub Desktop.
Separate server Docker Compose base file to run documentation
version: "3"
services:
nginx-docs:
image: "nginx"
container_name: "nginx"
volumes:
- ./.docs/html:/usr/share/nginx/html:ro
ports:
- "80:80"
environment:
- NGINX_HOST=127.0.0.1
- NGINX_PORT=80
tty: true
command: ['nginx', '-g', 'daemon off;']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment