Skip to content

Instantly share code, notes, and snippets.

@markgarrigan
Last active May 19, 2020 17:05
Show Gist options
  • Select an option

  • Save markgarrigan/175ba41b4eab2d96991fe49604e49d4b to your computer and use it in GitHub Desktop.

Select an option

Save markgarrigan/175ba41b4eab2d96991fe49604e49d4b to your computer and use it in GitHub Desktop.
version: '3.7'
services:
nginx:
image: nginx:latest
volumes:
- ./default.conf:/etc/nginx/conf.d/default.conf:ro
ports:
- 80:80
{{name}}:
image: {{image}}
volumes:
- .:{{dir}}
- {{volume}}:{{dir}}/node_modules
working_dir: {{dir}}
command: {{cmd}}
volumes:
{{volume}}:
external: true
version: '3.7'
services:
nginx:
image: nginx:latest
volumes:
- ./default.conf:/etc/nginx/conf.d/default.conf:ro
- ./certs:/service/app/certs:ro
ports:
- 80:80
- 443:443
{{name}}:
image: {{image}}
volumes:
- .:{{dir}}
- {{volume}}:{{dir}}/node_modules
working_dir: {{dir}}
command: {{cmd}}
volumes:
{{volume}}:
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment