lab-ansible/roles/apps/templates/compose-files/caddy.yml.j2
2024-04-14 19:29:48 +02:00

27 lines
605 B
Django/Jinja

{# code: language=ansible-jinja #}
# THIS FILE IS MANAGED BY ANSIBLE
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:
- ALL
cap_add:
- NET_BIND_SERVICE
networks:
{{ apps_shared_docker_network }}:
external: true