renamed some variables

Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
pull/1/head
TuDatTr 2022-12-06 23:29:57 +01:00
parent 8fec4941c1
commit a1800a18fc
2 changed files with 14 additions and 7 deletions

View File

@ -61,6 +61,13 @@ zoneminder_data: "{{ docker_data_dir }}/zm/data"
# pi # pi
# #
traefik_etc: "{{ docker_dir }}/traefik/etc-traefik/"
traefik_var: "{{ docker_dir }}/traefik/var-log/"
ddns_updater_data: "{{ docker_dir }}/ddns-updater/data/"
ha_config: "{{ docker_dir }}/home-assistant/config/"
pihole_pihole: {{ docker_dir }}/pihole/etc-pihole/
pihole_dnsmasq: {{ docker_dir }}/pihole/etc-dnsmasq.d/
# #
# backblaze # backblaze
# #

View File

@ -9,9 +9,9 @@ services:
volumes: volumes:
- "/etc/localtime:/etc/localtime:ro" - "/etc/localtime:/etc/localtime:ro"
- "/var/run/docker.sock:/var/run/docker.sock:ro" - "/var/run/docker.sock:/var/run/docker.sock:ro"
- "{{ docker_dir }}/traefik/etc-traefik/traefik.yml:/etc/traefik/traefik.yml" - "{{ traefik_etc }}/traefik.yml:/etc/traefik/traefik.yml"
- "{{ docker_dir }}/traefik/var-log/traefik.log:/var/log/traefik.log" - "{{ traefik_var }}/traefik.log:/var/log/traefik.log"
- "{{ docker_dir }}/traefik/var-log/access.log:/var/log/traefik.log" - "{{ traefik_var }}/access.log:/var/log/traefik.log"
ports: ports:
- 80:80 - 80:80
- 8080:8080 - 8080:8080
@ -27,7 +27,7 @@ services:
networks: networks:
net: {} net: {}
volumes: volumes:
- "{{ docker_dir }}/ddns-updater/data/:/updater/data/" - "{{ ddns_updater_data }}:/updater/data/"
ports: ports:
- 8000:8000/tcp - 8000:8000/tcp
homeassistant: homeassistant:
@ -36,7 +36,7 @@ services:
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- "/etc/localtime:/etc/localtime:ro" - "/etc/localtime:/etc/localtime:ro"
- "{{ docker_dir }}/home-assistant/config/:/config/" - "{{ ha_config }}:/config/"
privileged: true privileged: true
network_mode: host network_mode: host
labels: labels:
@ -63,8 +63,8 @@ services:
- "DNS1=1.0.0.1" - "DNS1=1.0.0.1"
volumes: volumes:
- "/etc/localtime:/etc/localtime:ro" - "/etc/localtime:/etc/localtime:ro"
- "{{ docker_dir }}/pihole/etc-pihole/:/etc/pihole/" - "{{ pihole_pihole }}:/etc/pihole/"
- "{{ docker_dir }}/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/" - "{{ pihole_dnsmasq }}:/etc/dnsmasq.d/"
dns: dns:
- 127.0.0.1 - 127.0.0.1
- 1.1.1.1 - 1.1.1.1