-
Notifications
You must be signed in to change notification settings - Fork 5
/
portainer.yml
47 lines (41 loc) · 1.53 KB
/
portainer.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
- hosts: homelab
vars:
application: portainer
docker_network: "{{ networks.pub }}"
tasks:
- name: Create config folder
ansible.builtin.file:
path: "{{ config_directory }}"
state: directory
owner: "{{ common_user }}"
group: "{{ common_group }}"
mode: "0771"
- name: Create container
ansible.builtin.include_role:
name: docker_container
vars:
image: portainer/portainer-ee:2.25.1
traefik:
- port: 9000
homepage:
group: Management
weight: 200
description: "Container management"
widget:
env: 1
key: !vault |
$ANSIBLE_VAULT;1.1;AES256
34613437303534313539613464396466303939616434373561363332656432613330633033613339
3564656635643639663365373964373335373966373964630a353836646166653363663537336534
65396537666561373361633032323431353734653966643037303162386161313365336633646339
6362646138376364310a333061306632393539343231336334613034306431316236396465366462
61613463326337623435646430373132316234653730646566323732333636623334616264363332
30623135386161316463633436363661626434353731613339636235633861623361663136653831
363339323136363865336632383630643961
fields: '["running", "stopped"]'
blackbox:
path: /api/status
volumes:
- "{{ config_directory }}:/data"
- /var/run/docker.sock:/var/run/docker.sock