Add docker initial config
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
# Setup SSH server
|
||||
sudo systemctl enable sshd
|
||||
|
||||
sudo ufw allow 22/tcp
|
||||
|
||||
# Setup Docker
|
||||
sudo pacman -S docker docker-compose docker-buildx
|
||||
|
||||
sudo systemctl enable --now docker.service
|
||||
|
||||
sudo usermod -aG docker {$USER}
|
||||
|
||||
newgrp docker
|
||||
docker create network homelogic
|
||||
|
||||
# Setup ZSH
|
||||
cat >> ~/.zshrc << 'EOF'
|
||||
# Custom aliases
|
||||
alias la="ls -a"
|
||||
@@ -25,6 +25,8 @@ alias size='sudo du -sxh .'
|
||||
alias ,,='..'
|
||||
alias restart='down && up'
|
||||
EOF
|
||||
# Reload zshrc to apply changes
|
||||
source ~/.zshrc
|
||||
|
||||
# Setup Tailscale
|
||||
curl -fsSL https://tailscale.com/install.sh | sh
|
||||
sudo tailscale up
|
||||
|
||||
Reference in New Issue
Block a user