2023-09-26 16:09:27 +00:00
|
|
|
# 2023-09-26
|
2023-09-25 08:40:20 +00:00
|
|
|
# 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:
|
2023-09-26 16:09:27 +00:00
|
|
|
memory: "{{ 0.5 if 0.5 <= vm_os_memory_max|float else vm_os_memory_max|float }}G"
|
2023-09-25 08:40:20 +00:00
|
|
|
volumes:
|
|
|
|
- { local: './{{ stack_folder_datas }}/portainer/datas', container: '/data', mode: 'rw' }
|