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