How to install/deploy Caddy with Dockge

1. The problem I’m having:

I have set up Caddy to work on my Windows 11 PC. I have a CaddyFile in the same folder as the Caddy executable. All works well. The setup was relatively simple, the CaddyFile placed next to the executable and then run the program.

Now I have set up a NAS running TrueNAS Community. I want to now use the NAS to run Caddy instead of Windows.

I normally deploy apps through the App store or use docker-comose.yml files in Dockge. I have 2 storage systems a SSD (ssd) for apps and small storage and Hard Disk Drives (hdd) for large datasets.

Can any one tell me what compose file I should use and where should I put my CaddyFile file?

Thanks for your assistance.-

2. Error messages and/or full log output:

No error messages yet as I need to set up Caddy on Dockge/TrueNAS

3. Caddy version:

4. How I installed and ran Caddy:

a. System environment:

b. Command:


c. Service/unit/compose file:


d. My complete Caddy config:

 

5. Links to relevant resources:

https://hub.docker.com/_/caddy

Please do not use code blocks for text, this makes your post very hard to read from mobile,hence you are getting less people who actually read it and answer it

1 Like

Use a docker-compose.yml with a Caddy container, mounting your Caddyfile from SSD storage. Place Caddyfile in a shared config folder like /mnt/ssd/caddy, and map it in the volume.