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

30 lines
642 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_add:
- net_bind_service
- dac_override
cap_drop:
- all
networks:
{{ apps_shared_docker_network }}:
external: true