11e241e30a
* Added an example of fronting the playbook's integrated Traefik reverse-proxy with the existing Caddy container (not the `apt-get` or `yum` installed Caddy). Helpful for folks who have an existing server with a Caddy container already serving multiple applications. * Update examples/reverse-proxies/caddy2-in-container/README.md Co-authored-by: Slavi Pantaleev <slavi@devture.com> * Update examples/reverse-proxies/caddy2-in-container/README.md Co-authored-by: Slavi Pantaleev <slavi@devture.com> * Update examples/reverse-proxies/caddy2-in-container/README.md Co-authored-by: Slavi Pantaleev <slavi@devture.com> * Code formatted, linted with yamllint * README.md updated * docs/configuring-playbook-own-webserver-caddy.md removed --------- Co-authored-by: Slavi Pantaleev <slavi@devture.com>
24 lines
429 B
YAML
24 lines
429 B
YAML
---
|
|
version: "3.9"
|
|
|
|
services:
|
|
caddy:
|
|
image: caddy:2.5.1-alpine
|
|
networks:
|
|
# add this, so that caddy can talk to the playbook-managed-traefik
|
|
- traefik
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
- "8448:8448"
|
|
volumes:
|
|
- ./Caddyfile:/etc/caddy/Caddyfile
|
|
# - ./site:/var/www
|
|
# Other configurations ...
|
|
|
|
networks:
|
|
# add this as well
|
|
traefik:
|
|
name: traefik
|
|
external: true
|