Docker, nginx and firewalld example

From BitFolk
Revision as of 04:32, 17 December 2022 by Zurich (talk | contribs)
Jump to navigation Jump to search

VPS Setup

See See Installing on BTRFS

Install Firewalld

root@host:~# apt install firewalld

Install Docker

For docker one needs the docker engine and docker compose. Both installation are documented on docs.docker.com. At the time of this writing for the engine it is Install Docker Engine on Debian and for docker compose Install the Compose plugin.

Since I do not want docker use iptables I apply the configuration like stated below.

root@host:~# cat /etc/systemd/system/multi-user.target.wants/docker.service | grep iptables
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock --iptables=false

After altering docker.service I rebooted to apply the changes. To see the changes do a iptables -L before and after reboot.