31 lines
916 B
YAML
31 lines
916 B
YAML
# 2023-09-26
|
|
# Stack: portainer
|
|
---
|
|
|
|
portainer:
|
|
name: "portainer"
|
|
ipv6: true
|
|
dockerproxy: true
|
|
|
|
directories:
|
|
- "{{ stack_folder_datas }}/portainer/datas"
|
|
|
|
services:
|
|
|
|
- name: "portainer"
|
|
image: "portainer/portainer-ee:alpine"
|
|
uid: "0"
|
|
gid: "0"
|
|
privileged: true
|
|
restart: "always"
|
|
ports:
|
|
- { exposed: "${VM_PORTAINER_HTTP}", container: "9000" }
|
|
- { exposed: "${VM_PORTAINER_HTTPS}", container: "9443" }
|
|
- { exposed: "${VM_PORTAINER_TCP}", container: "8000" }
|
|
command: "-H tcp://${VM_HOST}:${VM_PORT_DOCKERPROXY}"
|
|
healthcheck: 'wget --no-verbose --tries=1 --spider http://0.0.0.0:9000 || exit 1'
|
|
ressources:
|
|
memory: "{{ 0.5 if 0.5 <= vm_os_memory_max|float else vm_os_memory_max|float }}G"
|
|
volumes:
|
|
- { local: './{{ stack_folder_datas }}/portainer/datas', container: '/data', mode: 'rw' }
|