{"id":22903966,"url":"https://github.com/syp1975/caddy","last_synced_at":"2025-04-01T07:57:11.950Z","repository":{"id":45315781,"uuid":"435658788","full_name":"syp1975/caddy","owner":"syp1975","description":"Caddy v2 with docker proxy and some other plugins","archived":false,"fork":false,"pushed_at":"2022-07-27T09:33:50.000Z","size":56891,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T04:42:04.669Z","etag":null,"topics":["caddy","caddyserver","docker","dockerfile"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/syp1975.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-06T21:51:48.000Z","updated_at":"2021-12-25T18:13:42.000Z","dependencies_parsed_at":"2022-08-30T11:50:27.071Z","dependency_job_id":null,"html_url":"https://github.com/syp1975/caddy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syp1975%2Fcaddy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syp1975%2Fcaddy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syp1975%2Fcaddy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syp1975%2Fcaddy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syp1975","download_url":"https://codeload.github.com/syp1975/caddy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246604619,"owners_count":20804100,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["caddy","caddyserver","docker","dockerfile"],"created_at":"2024-12-14T02:39:35.108Z","updated_at":"2025-04-01T07:57:11.919Z","avatar_url":"https://github.com/syp1975.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Caddy v2 with docker proxy and some other plugins\n\nPackaged as a docker image: `ghcr.io/syp1975/caddy`.\n\nI use it to proxy containerized apps to my [Duck DNS](https://www.duckdns.org) subdomain trough a secure connection with a wildcard certificate issued by [Let's Encrypt](https://letsencrypt.org).\n\nImage is automatically rebuilt when the base image `caddy:2-builder` or plugins are updated.\n\n|Component|Description|\n|---|---|\n|[caddy](https://caddyserver.com)|Open source web server|\n|[caddy-docker-proxy](https://github.com/lucaslorentz/caddy-docker-proxy)|Caddy as a reverse proxy for Docker|\n|[duckdns](https://github.com/caddy-dns/duckdns)|Duck DNS module for Caddy|\n|[caddy-auth-portal](https://github.com/greenpau/caddy-auth-portal)|Authentication Plugin for Caddy v2|\n|[caddy-authorize](https://github.com/greenpau/caddy-authorize)|Authorization Plugin for Caddy v2 (JWT/PASETO)|\n|[caddy-exec](https://github.com/abiosoft/caddy-exec)|Caddy v2 module for running one-off commands|\n\n## Run caddy server\n\n```bash\ndocker network create caddy\ndocker run --name caddy -d --restart=unless-stopped \\\n  --network=caddy -p 443:443 -p 80:80 \\\n  -v /var/run/docker.sock:/var/run/docker.sock \\\n  -l caddy.acme_dns='duckdns your_duckdns_token' \\\n  -l caddy.email=your_email \\\n  -e CADDY_INGRESS_NETWORKS=caddy \\\n  ghcr.io/syp1975/caddy\n```\n\n## Run a containerized app behind the proxy\n\n```bash\ndocker run --name app_name -d \\\n  --network=caddy \\\n  -l caddy='*.your_sub_domain.duckdns.org' \\\n  -l caddy.@app_name.host='app_name.your_sub_domain.duckdns.org' |\n  -l caddy.reverse_proxy='@app_name {{upstreams app_port}}' \\\n  app_image\n```\n\n\\* There is no need to publish *app_port*, caddy proxy server already has access to the app port trough the caddy network\n\nAnd your application will be proxied at `https://app_name.your_sub_domain.duckdns.org`\n\n## TODO\n\n- Configure authentication\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyp1975%2Fcaddy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyp1975%2Fcaddy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyp1975%2Fcaddy/lists"}