# 2023-09-26 # 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: "{{ 2.0 if 2.0 <= vm_os_memory_max|float else vm_os_memory_max|float }}G" 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: []