/
/
/
Ansible role that provisions my storage server.
1# gdu Disk Usage Analyzer Docker Compose Configuration
2# Generated by Ansible - DO NOT EDIT MANUALLY
3
4
5services:
6 gdu:
7 image: {{ gdu_image }}:{{ gdu_version }}
8 container_name: gdu
9 restart: unless-stopped
10 # Runs as root on purpose: it has to stat every file on the array to
11 # account for it. The read-only mount below is what keeps that safe.
12 command:
13 - "--web"
14 - "--web-listen={{ gdu_web_hostname }}:{{ gdu_port }}"
15 - "--web-open=false"
16 - "--no-delete"
17 - "--max-cores={{ gdu_max_cores }}"
18 - "/scan"
19
20 # Resolves the --web-listen name to all interfaces (see gdu_web_hostname)
21 extra_hosts:
22 - "{{ gdu_web_hostname }}:0.0.0.0"
23
24 # Port Mapping
25 ports:
26 - "{{ gdu_host_port }}:{{ gdu_port }}"
27
28 # Volume Mounts
29 volumes:
30 - {{ gdu_scan_dir }}:/scan:ro
31
32 # Resource Limits
33 mem_limit: {{ gdu_memory_limit }}
34
35 # Network
36 networks:
37 - {{ storage_docker_network }}
38
39networks:
40 {{ storage_docker_network }}:
41 external: true
42