lab-ansible/roles/apps/templates/compose-files/caddy.yml.j2

29 lines
621 B
Plaintext
Raw Normal View History

2024-02-04 17:03:15 +00:00
{# code: language=ansible-jinja #}
# THIS FILE IS MANAGED BY ANSIBLE
version: "3.8"
services:
web:
image: caddy:{{ apps_vars.caddy.version }}
restart: always
networks:
{{ apps_shared_docker_network }}:
ipv4_address: {{ apps_vars.caddy.docker_ipv4 }}
ports:
- 80:80/tcp
- 443:443/tcp
- 443:443/udp
volumes:
- "./data/Caddyfile:/etc/caddy/Caddyfile:ro"
- "./data/caddy-config:/config:rw"
- "./data/caddy-data:/data:rw"
cap_drop:
2024-02-10 14:39:35 +00:00
- ALL
2024-02-10 14:49:18 +00:00
cap_add:
- NET_BIND_SERVICE
2024-02-04 17:03:15 +00:00
networks:
{{ apps_shared_docker_network }}:
external: true