Skip to content

Instantly share code, notes, and snippets.

@pboethig
Created April 16, 2017 16:15
Show Gist options
  • Save pboethig/f389995c2a2cda0cc9516eae9a1aff8b to your computer and use it in GitHub Desktop.
Save pboethig/f389995c2a2cda0cc9516eae9a1aff8b to your computer and use it in GitHub Desktop.
version: '2'
services:
proxy:
image: sameersbn/nginx:1.10.3
hostname: proxy
ports:
- "8080:80"
volumes:
- ./nginx/sites-enabled:/etc/nginx/sites-enabled
- ./logs/proxy/nginx/:/var/log/nginx
networks:
- internal
front1:
image: sameersbn/nginx:1.10.3
hostname: front1
volumes:
#- ./nginx_front1/sites-enabled:/etc/nginx/sites-enabled
- ./logs/front1/nginx/:/var/log/nginx
- ./nginx_front1/www:/usr/share/nginx/html
networks:
- internal
networks:
internal:
driver: bridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment