1
0
Fork 0

Secure proton mail bridge networks

This commit is contained in:
florian 2023-01-17 22:58:38 +01:00
parent dce0519884
commit dc56a2336b
3 changed files with 10 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -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