Operating system: TrueNas Scale ElectricEel-24.10.2.4
Docker environment: DockGe | App Version: 1.5.0 | Version: 1.2.14
Hi everyone,
I’m trying to install caddy on Truenas through DockGe, when I run the following yaml:
services:
caddy:
image: caddy:latest
working_dir: /mnt/NAS 16TB 2 Vdevs Mirrored /arr-apps/caddy v2
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ./conf:/etc/caddy
- ./site:/srv
- caddy_data:/data
- caddy_config:/config
volumes:
caddy_data:
caddy_config:
it returns the following error:
[+] Running 0/1
⠙ Container cadd-caddy-1 Starting 0.1s
Error response from daemon: driver failed programming external connectivity on endpoint cadd-caddy-1 (6f95686d419a10b03f1c6038bc9f49aecae974e8f7d443ba3b936a92ce816fc2): failed to bind port 0.0.0.0:80/tcp: Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use
It seems that truenas uses Nginx at port 80 for the webUI by default, I tried sudo systemctl stop nginx and while it did work and let me deploy caddy, it shut down my UI for truenas.
Any idea how to work around this issue?
Any help is appreciated, thanks.