Last active
September 23, 2019 19:40
-
-
Save morozow/cfef9d86407f37e66ae52ccef50663ce to your computer and use it in GitHub Desktop.
Separate server Docker Compose base file to run documentation
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: "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