lab-ansible/roles/apps/templates/compose-files/caddy.yml.j2
2024-02-10 15:49:18 +01:00

29 lines
621 B
Django/Jinja

{# 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:
- ALL
cap_add:
- NET_BIND_SERVICE
networks:
{{ apps_shared_docker_network }}:
external: true