30 lines
642 B
Plaintext
30 lines
642 B
Plaintext
|
{# 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
|