Skip to content

Instantly share code, notes, and snippets.

@francoisruty
Created February 14, 2021 17:02
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 francoisruty/82f26dc221f126759daf369e5c77147c to your computer and use it in GitHub Desktop.
Save francoisruty/82f26dc221f126759daf369e5c77147c to your computer and use it in GitHub Desktop.
fruty_docker-outbound-restriction
version: '3'
services:
nginx-proxy-google:
networks:
- no-internet
- internet
image: nginx:stable
volumes:
- ./nginx_proxy_google.conf:/etc/nginx/nginx.conf
- ./ssl-conf:/etc/nginx/ssl-conf
restart: always
##### Protected section
protected-container:
networks:
- no-internet
links:
- nginx-proxy-google:google.com
image: nginx:stable
networks:
internet: {}
no-internet:
internal: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment