A script for create a Caddy container quickly.
- Linux system using systemd
- Podman
- Python 3.6+
- a domain name
- a public IP address
- Bind your domain name to the public IP.
- Create a workspace
mkdir caddy && cd caddy
- Download the script
curl -LO https://raw.githubusercontent.com/yuhr123/caddy/main/run.py
- Running the script
sudo python3 run.py
The scirpt will build a custom caddy image and create a container with it, and then create a systemd serivce for that container.
- Manage your caddy container
# Check status
sudo systemctl status container-caddy
# stop caddy
sudo systemctl stop container-caddy
# restart caddy
sudo systemctl restart container-caddy