ansible/roles/stacks/composes/inventory/dl.yml
2023-09-25 10:40:20 +02:00

50 lines
1.3 KiB
YAML

# 2023-09-25
# Stack: dl
---
dl:
name: "dl"
tasks:
- dl.yml
ipv6: true
traefik: true
directories:
- "{{ stack_folder_conf }}/dl-nginx/conf"
- "{{ stack_folder_datas }}/dl-nginx/datas"
services:
- name: "dl-nginx"
image: "{{ vm_subdomain_registry }}.{{ vm_internet_domain }}/zogg/nginx:latest"
uid: "0"
gid: "0"
capabilities:
- CHOWN
- DAC_OVERRIDE
- FOWNER
- FSETID
- SETGID
- SETUID
- NET_BIND_SERVICE
- MKNOD
restart: "always"
ports:
- { exposed: "${VM_PORT_DL_NGINX}", container: "80" }
healthcheck: 'curl --fail http://0.0.0.0:80/ || exit 1'
ressources:
memory: "2G"
pid: 8192
volumes:
- { local: './{{ stack_folder_conf }}/dl-nginx/conf/dl-nginx', container: '/etc/nginx/conf.d', mode: 'rw' }
- { local: './{{ stack_folder_datas }}/dl-nginx/datas/html', container: '/usr/share/nginx/html', mode: 'ro' }
traefik:
routers:
- {
name: "dl",
rule: "Host(`{{ vm_subdomain_dl }}.{{ vm_internet_domain }}`)",
middlewares: "default@file, errors@docker",
service: "dl@file"
}
services: []