I am running Caddy through docker-compose.
After using my domain for a few months now, I got a lets encrypt rate limiting exception. I have seen things like updating 5 times in a week on the lets encrypt site, and had to stop and build multiple times today. I think I have done this before without a problem, but I am mostly confused bc I was under the impression that the caddy container stores the certificate, and pulls from there before trying to get a new certificate. Is this incorrect? if so, how do I get around this.
caddy section of docker-compose:
version: "3.7"
services:
caddy:
build:
context: ./
dockerfile: CaddyDockerfile
network_mode: bridge
restart: always
container_name: caddyContainer
ports:
- "443:443"
- "80:80"
env_file:
- ./CaddyEnv.env
caddyEnv:
REACT_APP_WEBSOCKET=wss://subdomain/socket
REACT_APP_REDIRECT=https://subdomain/
CaddyDockerfile:
FROM caddy:2.1.1-alpine
COPY ./Caddyfile /etc/caddy/Caddyfile
COPY ./tuui /app
Caddyfile:
subdomain
redir /ui /ui/
handle_path /ui/* {
root * /app/build/
file_server
}
handle_path /* {
reverse_proxy ip:8080
}
handle /env-config.js {
header Content-Type text/javascript
respond `window.config = {"REACT_APP_WEBSOCKET": "{$REACT_APP_WEBSOCKET}", "REACT_APP_REDIRECT": "{$REACT_APP_REDIRECT}"};`
}
log {
level DEBUG
}