gitea/prepare.sh

17 lines
389 B
Bash
Raw Normal View History

2023-03-25 12:07:14 +00:00
#!/bin/bash
# Update repo cache and install packages
sudo apt update
sudo apt install -y nginx-light certbot python3-certbot-nginx docker.io
2023-03-25 14:49:36 +00:00
# Add current user to docker group and switch to this group
2023-03-25 12:07:14 +00:00
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