Define app data dir in variable
This commit is contained in:
parent
361a78e8e0
commit
a303bed27f
13 changed files with 24 additions and 23 deletions
|
@ -1 +1,2 @@
|
||||||
traefik_influx_db_dir: ./influxdb
|
traefik_influx_db_dir: ./influxdb
|
||||||
|
app_data_dir: /mnt/tank/app-data
|
||||||
|
|
|
@ -12,9 +12,9 @@ services:
|
||||||
{% endfilter %}
|
{% endfilter %}
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/tank/app-data/gitlab/config:/etc/gitlab
|
- "{{ app_data_dir }}/gitlab/config:/etc/gitlab"
|
||||||
- /mnt/tank/app-data/gitlab/data:/var/opt/gitlab
|
- "{{ app_data_dir }}/gitlab/data:/var/opt/gitlab"
|
||||||
- /mnt/tank/app-data/gitlab/pages:/mnt/pages
|
- "{{ app_data_dir }}/gitlab/pages:/mnt/pages"
|
||||||
tmpfs:
|
tmpfs:
|
||||||
- /var/log/gitlab
|
- /var/log/gitlab
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
@ -53,8 +53,8 @@ services:
|
||||||
- PGID=998
|
- PGID=998
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/tank/app-data/gitlab/pages:/mnt/pages:ro
|
- "{{ app_data_dir }}/gitlab/pages:/mnt/pages:ro"
|
||||||
- /mnt/tank/app-data/gitlab/lsyncd/lsyncd.lua:/config/lsyncd.lua:ro
|
- "{{ app_data_dir }}/gitlab/lsyncd/lsyncd.lua:/config/lsyncd.lua:ro"
|
||||||
- /mnt/tank/app-data/gitlab/lsyncd/id_ed25519.pub:/config/.ssh/id_ed25519.pub
|
- "{{ app_data_dir }}/gitlab/lsyncd/id_ed25519.pub:/config/.ssh/id_ed25519.pub"
|
||||||
- /mnt/tank/app-data/gitlab/lsyncd/id_ed25519:/config/.ssh/id_ed25519
|
- "{{ app_data_dir }}/gitlab/lsyncd/id_ed25519:/config/.ssh/id_ed25519"
|
||||||
- /mnt/tank/app-data/gitlab/lsyncd/known_hosts:/config/.ssh/known_hosts
|
- "{{ app_data_dir }}/gitlab/lsyncd/known_hosts:/config/.ssh/known_hosts"
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
- name: Install lsyncd config
|
- name: Install lsyncd config
|
||||||
template:
|
template:
|
||||||
src: files/lsyncd.lua
|
src: files/lsyncd.lua
|
||||||
dest: /mnt/tank/app-data/gitlab/lsyncd/lsyncd.lua
|
dest: "{{ app_data_dir }}/gitlab/lsyncd/lsyncd.lua"
|
||||||
mode: "{{ docker_compose_file_mask }}"
|
mode: "{{ docker_compose_file_mask }}"
|
||||||
owner: "998"
|
owner: "998"
|
||||||
notify: restart gitlab
|
notify: restart gitlab
|
||||||
|
|
|
@ -9,7 +9,7 @@ services:
|
||||||
- GF_RENDERING_SERVER_URL=http://renderer:8081/render
|
- GF_RENDERING_SERVER_URL=http://renderer:8081/render
|
||||||
- GF_RENDERING_CALLBACK_URL=http://grafana:3000/
|
- GF_RENDERING_CALLBACK_URL=http://grafana:3000/
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/tank/app-data/grafana:/var/lib/grafana
|
- "{{ app_data_dir }}/grafana:/var/lib/grafana"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
|
|
@ -8,7 +8,7 @@ services:
|
||||||
- TZ=Europe/London
|
- TZ=Europe/London
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/tank/app-data/calibre:/config
|
- "{{ app_data_dir }}/calibre:/config"
|
||||||
- /srv/nextcloud-data/data/jake/files/EBooks:/books:ro
|
- /srv/nextcloud-data/data/jake/files/EBooks:/books:ro
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
|
|
|
@ -8,7 +8,7 @@ services:
|
||||||
- PGID={{ docker_user.id }}
|
- PGID={{ docker_user.id }}
|
||||||
- TZ=Europe/London
|
- TZ=Europe/London
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/tank/app-data/jellyfin:/config
|
- "{{ app_data_dir }}/jellyfin:/config"
|
||||||
- /mnt/media/TV:/mnt/TV
|
- /mnt/media/TV:/mnt/TV
|
||||||
- /mnt/media/Movies:/mnt/Movies
|
- /mnt/media/Movies:/mnt/Movies
|
||||||
- /mnt/scratch/transcodes:/config/data/transcodes
|
- /mnt/scratch/transcodes:/config/data/transcodes
|
||||||
|
|
|
@ -11,8 +11,8 @@ services:
|
||||||
- UID=0
|
- UID=0
|
||||||
- GID=0
|
- GID=0
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/tank/app-data/synapse/homeserver.yaml:/etc/homeserver.yaml
|
- "{{ app_data_dir }}/synapse/homeserver.yaml:/etc/homeserver.yaml"
|
||||||
- /mnt/tank/app-data/synapse:/data
|
- "{{ app_data_dir }}/synapse:/data"
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
expose:
|
expose:
|
||||||
|
|
|
@ -7,7 +7,7 @@ services:
|
||||||
- PGID={{ docker_user.id }}
|
- PGID={{ docker_user.id }}
|
||||||
- TZ=Europe/London
|
- TZ=Europe/London
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/tank/app-data/deluge:/config
|
- "{{ app_data_dir }}/deluge:/config"
|
||||||
- /mnt/scratch/deluge:/downloads
|
- /mnt/scratch/deluge:/downloads
|
||||||
ports:
|
ports:
|
||||||
- 8112:8112
|
- 8112:8112
|
||||||
|
|
|
@ -8,8 +8,8 @@ services:
|
||||||
- PGID={{ docker_user.id }}
|
- PGID={{ docker_user.id }}
|
||||||
- TZ=Europe/London
|
- TZ=Europe/London
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/tank/app-data/tt-rss/config.php:/config/config.php:ro
|
- "{{ app_data_dir }}/tt-rss/config.php:/config/config.php:ro"
|
||||||
- /mnt/tank/app-data/tt-rss/feed-icons:/config/feed-icons
|
- "{{ app_data_dir }}/tt-rss/feed-icons:/config/feed-icons"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
|
|
|
@ -8,8 +8,8 @@ services:
|
||||||
- SYMFONY__ENV__SECRET={{ wallabag_secret }}
|
- SYMFONY__ENV__SECRET={{ wallabag_secret }}
|
||||||
- SYMFONY__ENV__DOMAIN_NAME=https://wallabag.jakehoward.tech
|
- SYMFONY__ENV__DOMAIN_NAME=https://wallabag.jakehoward.tech
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/tank/app-data/wallabag/data:/var/www/wallabag/data
|
- "{{ app_data_dir }}/wallabag/data:/var/www/wallabag/data"
|
||||||
- /mnt/tank/app-data/wallabag/images:/var/www/wallabag/images
|
- "{{ app_data_dir }}/wallabag/images:/var/www/wallabag/images"
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
- traefik.http.routers.wallabag.rule=Host(`wallabag.jakehoward.tech`)
|
- traefik.http.routers.wallabag.rule=Host(`wallabag.jakehoward.tech`)
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
- name: Install synapse config
|
- name: Install synapse config
|
||||||
template:
|
template:
|
||||||
src: files/synapse/homeserver.yml
|
src: files/synapse/homeserver.yml
|
||||||
dest: /mnt/tank/app-data/synapse/homeserver.yaml
|
dest: "{{ app_data_dir }}/synapse/homeserver.yaml"
|
||||||
mode: "{{ docker_compose_file_mask }}"
|
mode: "{{ docker_compose_file_mask }}"
|
||||||
owner: "{{ docker_user.name }}"
|
owner: "{{ docker_user.name }}"
|
||||||
register: homeserver_config
|
register: homeserver_config
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
- name: Install tt-rss config
|
- name: Install tt-rss config
|
||||||
template:
|
template:
|
||||||
src: files/tt-rss/config.php
|
src: files/tt-rss/config.php
|
||||||
dest: /mnt/tank/app-data/tt-rss/config.php
|
dest: "{{ app_data_dir }}/tt-rss/config.php"
|
||||||
mode: "{{ docker_compose_file_mask }}"
|
mode: "{{ docker_compose_file_mask }}"
|
||||||
owner: "{{ docker_user.name }}"
|
owner: "{{ docker_user.name }}"
|
||||||
register: config_file
|
register: config_file
|
||||||
|
|
|
@ -6,7 +6,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- "{{ wireguard.clients[ansible_fqdn].ip }}:7278:8080"
|
- "{{ wireguard.clients[ansible_fqdn].ip }}:7278:8080"
|
||||||
volumes:
|
volumes:
|
||||||
- /mnt/tank/app-data/scrutiny/:/config
|
- "{{ app_data_dir }}/scrutiny/:/config"
|
||||||
environment:
|
environment:
|
||||||
- SCRUTINY_WEB=true
|
- SCRUTINY_WEB=true
|
||||||
- PUID={{ docker_user.id }}
|
- PUID={{ docker_user.id }}
|
||||||
|
@ -19,7 +19,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- /dev/disk:/dev/disk
|
- /dev/disk:/dev/disk
|
||||||
- /run/udev:/run/udev:ro
|
- /run/udev:/run/udev:ro
|
||||||
- /mnt/tank/app-data/scrutiny/:/config
|
- "{{ app_data_dir }}/scrutiny/:/config"
|
||||||
environment:
|
environment:
|
||||||
- SCRUTINY_COLLECTOR=true
|
- SCRUTINY_COLLECTOR=true
|
||||||
- SCRUTINY_API_ENDPOINT=http://web:8080
|
- SCRUTINY_API_ENDPOINT=http://web:8080
|
||||||
|
|
Loading…
Reference in a new issue