add dashy

authelia
chatton 2 years ago
parent 08a32bb2f7
commit 6392473195

@ -45,10 +45,6 @@ external_docker_networks:
ansible_pull_path: /home/{{ homelab_user }}/.local/bin/ansible-pull ansible_pull_path: /home/{{ homelab_user }}/.local/bin/ansible-pull
portainer_required_files: portainer_required_files:
- source_file: dashboards/dashy-config.yml
dest_file_name: dashy-config.yml
dest_directory: /etc/config/dashy
handler: restart-dashy
- source_file: olivetin/config.yml - source_file: olivetin/config.yml
dest_file_name: config.yml dest_file_name: config.yml
dest_directory: /etc/config/OliveTin dest_directory: /etc/config/OliveTin

@ -12,7 +12,6 @@ portainer_required_templates:
portainer_endpoint: 23 portainer_endpoint: 23
services: services:
- name: linkding
- name: pihole - name: pihole
- name: hasteypaste - name: hasteypaste
- name: dashboards - name: dashboards

@ -68,7 +68,19 @@
- role: portainer_bookstack - role: portainer_bookstack
- role: portainer_vaultwarden - role: portainer_vaultwarden
#- name: Setup and deploy portainer services. - name: Setup and deploy portainer services (qnap).
hosts: qnap
become: true
tags: [services]
pre_tasks:
- name: Include vault variables.
ansible.builtin.include_vars: '../{{ vault_file }}'
tags: [always]
roles:
- role: portainer_dashy
#
#- name: Setup and deploy templated portainer services.
# hosts: servers # hosts: servers
# become: true # become: true
# pre_tasks: # pre_tasks:

@ -0,0 +1,14 @@
---
dashy_image: lissy93/dashy
dashy_tag: 2.1.1
dashy_expose_port: 4000
dashy_portainer_stack_name: dashy
dashy_container_name: dashy
dashy_restart_policy: unless-stopped
dashy_config_dir: /etc/config/dashy
dashy_config_file: dashy-config.yml
# environment variables
dashy_node_env: production
dashy_uid: 1000
dashy_gid: 1000

@ -0,0 +1,3 @@
---
- name: restart-dashy
ansible.builtin.command: docker restart dashy

@ -0,0 +1,46 @@
---
- name: Create config directory.
ansible.builtin.file:
path: '{{ dashy_config_dir }}'
state: directory
mode: '0755'
- name: Create config file.
ansible.builtin.copy:
src: "dashy-config.yml"
dest: '{{ dashy_config_dir }}/{{ dashy_config_file }}'
owner: root
group: root
mode: 0440
notify: restart-dashy
- name: "Dashy | Update Portainer."
chatton.portainer.portainer_stack:
username: admin
password: '{{ portainer.password }}'
base_url: '{{ portainer_base_url }}'
stack_name: '{{ dashy_portainer_stack_name }}'
endpoint_id: '{{ portainer_endpoint }}'
state: present
definition:
version: '3'
services:
dashy:
container_name: "{{ dashy_container_name }}"
image: "{{ dashy_image }}:{{ dashy_tag }}"
volumes:
- "{{ dashy_config_dir}}/{{ dashy_config_file }}:/app/public/conf.yml"
ports:
- "{{ dashy_expose_port}}:80"
environment:
- "NODE_ENV={{ dashy_node_env }}"
- "UID={{ dashy_uid }}"
- "GID={{ dashy_gid }}"
restart: "{{ dashy_restart_policy}}"
# Configure healthchecks
healthcheck:
test: ['CMD', 'node', '/app/services/healthcheck']
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s

@ -1,25 +0,0 @@
---
version: "3.1"
services:
bookstack:
labels:
ie.cianhatton.backup.enabled: "true"
ie.cianhatton.backup.schedule: "{{ backups.schedule_keys.nightly }}"
image: "{{ template_vars.image }}:{{ template_vars.tag }}"
container_name: bookstack
environment:
- PUID=1000
- PGID=1000
- DB_HOST=qnap
- DB_USER=bookstack
- DB_PASS="{{ bookstack_password }}"
- DB_DATABASE=bookstackapp
- APP_URL="https://bookstack.cianhatton.ie"
volumes:
- config:/config
ports:
- 6875:80
restart: unless-stopped
volumes:
config:

@ -1,16 +0,0 @@
---
version: '3'
services:
linkding:
labels:
ie.cianhatton.backup.enabled: "true"
ie.cianhatton.backup.schedule: "{{backups.schedule_keys.nightly}}"
container_name: "linkding"
image: sissbruecker/linkding:latest
ports:
- "9090:9090"
volumes:
- "data:/etc/linkding/data"
restart: unless-stopped
volumes:
data:

@ -1,23 +0,0 @@
---
version: '3.3'
services:
vaultwarden:
labels:
ie.cianhatton.backup.enabled: "true"
ie.cianhatton.backup.schedule: "{{ backups.schedule_keys.nightly }}"
image: "{{ template_vars.image }}:{{ template_vars.tag }}"
volumes:
- data:/data
environment:
WEBSOCKET_ENABLED: true
SENDS_ALLOWED: true
EMERGENCY_ACCESS_ALLOWED: true
WEB_VAULT_ENABLED: true
DOMAIN: "https://vault.cianhatton.ie"
ADMIN_TOKEN: "{{ vaultwarden_admin_token }}"
SIGNUPS_ALLOWED: false
restart: unless-stopped
ports:
- 80:80
volumes:
data:
Loading…
Cancel
Save