Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (23 sloc) 477 Bytes
version: "3.3"
volumes:
certs: {}
services:
caddy:
build:
context: .
dockerfile: Dockerfile
args:
CADDY_VERSION: ${CADDY_VERSION:-0.10.9}
image: stefanprodan/caddy:${CADDY_VERSION:-0.10.9}
container_name: caddy
ports:
- 80:80
- 443:443
- 9180:9180
volumes:
- certs:/.caddy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:80"]
interval: 5s
timeout: 1s
retries: 3