datacoop.ansible/roles/docker/tasks/services/portainer.yml

23 lines
582 B
YAML
Raw Normal View History

2019-03-15 11:38:36 +00:00
---
- name: create portainer volume folder
file:
name: "{{ portainer.volume_folder }}"
state: directory
- name: run portainer
docker_container:
name: portainer
2022-11-22 21:52:23 +00:00
image: portainer/portainer-ee:2.16.2
2019-03-15 11:38:36 +00:00
restart_policy: always
networks:
- name: external_services
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- "{{ portainer.volume_folder }}:/data"
env:
VIRTUAL_HOST: "{{ portainer.domain }}"
2021-01-26 20:59:26 +00:00
VIRTUAL_PORT: "9000"
2019-03-15 11:38:36 +00:00
LETSENCRYPT_HOST: "{{ portainer.domain }}"
LETSENCRYPT_EMAIL: "{{ letsencrypt_email }}"