Skip to content

Instantly share code, notes, and snippets.

@esenthil2018
Created January 26, 2022 03:41
Show Gist options
  • Save esenthil2018/e9c56758d0b4cbe17e1b919d7afabe8e to your computer and use it in GitHub Desktop.
Save esenthil2018/e9c56758d0b4cbe17e1b919d7afabe8e to your computer and use it in GitHub Desktop.
version: '3'
services:
web1: &web
image: nginx
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./templates:/etc/nginx/templates
port:
- 80:80
web2:
image: nginx
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./templates:/etc/nginx/templates
port:
- 81:80
web3:
image: nginx
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./templates:/etc/nginx/templates
port:
- 82:80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment