The image contains a caddy webserver with its config and a website which the caddy server hosts.
Before you start up the docker-compose file, make sure to create the volume first by running:
docker volume create --name=caddy_data
You can start this with the following docker-compose file:
version: "3.7"
services:
caddy:
image: nobody1997/mywebsite:1.0.0
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- caddy_data:/data
- caddy_config:/config
volumes:
caddy_data:
external: true
caddy_config:
docker pull nobody1997/mywebsite:1.0.0