28 lines
580 B
YAML
28 lines
580 B
YAML
services:
|
|
caddy:
|
|
image: caddy-ratelimit:2.10.2
|
|
# Custom build: stock caddy:2.10.2 + github.com/mholt/caddy-ratelimit.
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.ratelimit
|
|
container_name: caddy
|
|
restart: unless-stopped
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
- "443:443/udp"
|
|
volumes:
|
|
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
|
- ./data:/data
|
|
- ./config:/config
|
|
networks:
|
|
- edge
|
|
- dev_edge
|
|
networks:
|
|
edge:
|
|
external: true
|
|
dev_edge:
|
|
external: true
|