Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion lib/kamal/cli/templates/sample_hooks/docker-setup.sample
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#!/bin/sh

echo "Docker set up on $KAMAL_HOSTS..."
bin/kamal server exec "
ufw allow ssh && \
ufw allow http && \
ufw allow https && \
ufw --force enable && \
apt-get install fail2ban -y && \
systemctl start fail2ban && \
systemctl enable fail2ban"