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

35 lines
682 B
YAML

# 2023-09-26
# Stack: adminer
---
adminer:
name: "adminer"
ipv6: true
directories: []
services:
- name: "adminer"
image: "adminer:latest"
uid: "0"
gid: "0"
capabilities:
- DAC_OVERRIDE
- DAC_READ_SEARCH
- CHOWN
- SETUID
- SETGID
- SYS_ADMIN
- MKNOD
- SETFCAP
- SETPCAP
- SYS_RESOURCE
restart: "no"
ports:
- { exposed: "${VM_PORT_ADMINER}", container: "8080" }
healthcheck: 'php -v || exit 1'
ressources:
cpu: "{{ vm_os_cpu_half }}"
memory: "{{ 1.0 if 1.0 <= vm_os_memory_max|float else vm_os_memory_max|float }}G"