Secure proton mail bridge networks
This commit is contained in:
parent
dce0519884
commit
dc56a2336b
3 changed files with 10 additions and 1 deletions
|
@ -20,6 +20,7 @@ services:
|
|||
container_name: nextcloud
|
||||
networks:
|
||||
- proxy
|
||||
- protonmail
|
||||
- internal
|
||||
depends_on:
|
||||
- db
|
||||
|
@ -65,3 +66,5 @@ networks:
|
|||
internal:
|
||||
proxy:
|
||||
external: true
|
||||
protonmail:
|
||||
external: true
|
||||
|
|
1
firewall
1
firewall
|
@ -82,5 +82,6 @@ iptables -A FORWARD -p tcp --tcp-flags SYN,ACK,FIN,RST RST -m limit --limit 1/s
|
|||
|
||||
# Allow all from private network and docker network
|
||||
iptables -A INPUT -j ACCEPT -d 172.17.0.0/16
|
||||
iptables -A OUTPUT -j ACCEPT -d 172.17.0.0/16
|
||||
iptables -A INPUT -j ACCEPT -d 192.168.1.0/24
|
||||
iptables -A OUTPUT -j ACCEPT -d 192.168.1.0/24
|
||||
|
|
|
@ -5,9 +5,14 @@ services:
|
|||
image: shenxn/protonmail-bridge
|
||||
restart: always
|
||||
container_name: protonmail-bridge
|
||||
network_mode: host
|
||||
networks:
|
||||
- protonmail
|
||||
volumes:
|
||||
- protonmail:/root
|
||||
|
||||
volumes:
|
||||
protonmail:
|
||||
|
||||
networks:
|
||||
protonmail:
|
||||
external: true
|
||||
|
|
Loading…
Reference in a new issue