Sorry if this is a no brainer issue but I cannot get Docker to compose Caddy. Here is my compose:
Here is the error I get when trying to build it
2. Error messages and/or full log output:
500 - Internal Server Error
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LC_ALL=C.UTF-8; export LANGUAGE=; docker compose --file '/NVMEZFS1/NVME/Jellyfin/Caddy/Caddy.yml' --file "/NVMEZFS1/NVME/Jellyfin/Caddy/compose.override.yml" --env-file '/NVMEZFS1/NVME/Jellyfin/global.env' --env-file '/NVMEZFS1/NVME/Jellyfin/Caddy/Caddy.env' up -d 2>&1': Service caddy Building #0 building with "default" instance using docker driver #1 [caddy internal] load build definition from Dockerfile #1 transferring dockerfile: 2B done #1 DONE 0.1s failed to solve: failed to read dockerfile: open Dockerfile: no such file or directory
<!-- What are you trying to do? What isn't working? Please describe the issue thoroughly enough so that anyone can reproduce the exact behavior you're seeing. Be as specific as possible. Use `curl -vL` to show example requests. DO NOT USE WEB BROWSERS HERE. Browsers have subtle caching behaviours which can make testing difficult. -->
c. Service/unit/compose file:
services:
caddy:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
container_name: caddy
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- /NVMEZFS1/NVME/Jellyfin/Caddy/Caddyfile:/etc/caddy/Caddyfile
- /NVMEZFS1/NVME/Jellyfin/Caddy/configs/caddy/site:/srv
- /NVMEZFS1/NVME/Jellyfin/Caddy/caddy_data:/data
- /NVMEZFS1/NVME/Jellyfin/Caddy/caddy_config:/config
networks:
- caddy-network
networks:
caddy-network:
external: true
volumes:
caddy_data:
external: true
caddy_config: