first commit

This commit is contained in:
Digital Studium
2023-03-25 12:07:14 +00:00
commit a5a50d0e02
8 changed files with 89 additions and 0 deletions

16
prepare.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
# Update repo cache and install packages
sudo apt update
sudo apt install -y nginx-light certbot python3-certbot-nginx docker.io
# Add current user to `docker` group and switch to this group
sudo usermod -a -G docker $USER
newgrp docker
# Init docker swarm mode if not yet initialized
docker swarm init || true
# Deploy docker stack
docker stack deploy -c stack.yaml gitea