Skip to content

Commit

Permalink
update networks
Browse files Browse the repository at this point in the history
  • Loading branch information
progress44 committed Mar 18, 2023
1 parent d64d4aa commit dc9746a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
5 changes: 3 additions & 2 deletions docker-compose-dnsmasq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ services:
cap_add:
- NET_ADMIN
networks:
- tier_1
- edge

networks:
tier_1:
edge:
name: edge
3 changes: 1 addition & 2 deletions docker-compose-letsencrypt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ services:
- dockergen
restart: unless-stopped
networks:
- tier_0
- tier_1
- edge
volumes_from:
- nginx
volumes:
Expand Down
10 changes: 4 additions & 6 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: "3"

networks:
tier_0: ## Outside world
tier_1: ## Inside proxy
edge:
name: edge

volumes:
nginx_:
Expand All @@ -24,8 +24,7 @@ services:
- "80:80"
- "443:443"
networks:
- tier_0
- tier_1
- edge
volumes:
- vhost_:/etc/nginx/vhost.d
- nginx_:/etc/nginx/conf.d
Expand All @@ -38,8 +37,7 @@ services:
restart: always
command: -notify-sighup $COMPOSE_PROJECT_NAME.nginx -watch -wait 5s:30s /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
networks:
- tier_0
- tier_1
- edge
volumes_from:
- nginx
volumes:
Expand Down

0 comments on commit dc9746a

Please sign in to comment.