ansible/roles/stacks/composes/inventory/homepage.yml

30 lines
1.0 KiB
YAML

# 2023-09-26
# Stack: stacks
---
homepage:
name: "homepage"
tasks:
- homepage.yml
ipv6: true
directories:
- "{{ stack_folder_conf }}/homepage/conf"
- "{{ stack_folder_datas }}/homepage/datas"
services:
- name: "homepage"
image: "ghcr.io/benphelps/homepage:latest"
restart: "always"
ports:
- { exposed: "${VM_PORT_HOMEPAGE}", container: "3000" }
healthcheck: 'wget --no-verbose --tries=1 --spider http://0.0.0.0:3000/ || exit 1'
ressources:
cpus: "{{ vm_os_cpu_max }}"
memory: "{{ 0.5 if 0.5 <= vm_os_memory_max|float else vm_os_memory_max|float }}G"
volumes:
- { local: './{{ stack_folder_conf }}/homepage/conf', container: '/app/config', mode: 'ro' }
- { local: './{{ stack_folder_datas }}/homepage/datas/icons', container: '/app/public/icons', mode: 'ro' }
- { local: './{{ stack_folder_datas }}/homepage/datas/images', container: '/app/public/images', mode: 'ro' }