From 6b777fcd0a7ec82ce68c4e36ca3d424e405b7464 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Wed, 5 Apr 2023 23:10:42 -0700 Subject: [PATCH] Move data volume to NAS --- homelab/jafner-net/config/peertube/.env | 6 +++++- homelab/jafner-net/config/peertube/docker-compose.yml | 10 +++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/homelab/jafner-net/config/peertube/.env b/homelab/jafner-net/config/peertube/.env index 165e9a19..0c9c36ce 100644 --- a/homelab/jafner-net/config/peertube/.env +++ b/homelab/jafner-net/config/peertube/.env @@ -1,2 +1,6 @@ # Docker volume location -DOCKER_VOLUME=/mnt/nas/DockerData/peertube/ \ No newline at end of file +PEERTUBE_DATA_VOLUME=/mnt/nas/DockerData/peertube/ +PEERTUBE_CONFIG_VOLUME=/mnt/md0/peertube/peertube/ +POSTGRES_CONFIG_VOLUME=/mnt/md0/peertube/db/ +REDIS_CONFIG_VOLUME=/mnt/md0/peertube/redis/ +POSTFIX_CONFIG_VOLUME=/mnt/md0/peertube/postfix/ \ No newline at end of file diff --git a/homelab/jafner-net/config/peertube/docker-compose.yml b/homelab/jafner-net/config/peertube/docker-compose.yml index 6d61cc98..7916582b 100644 --- a/homelab/jafner-net/config/peertube/docker-compose.yml +++ b/homelab/jafner-net/config/peertube/docker-compose.yml @@ -24,8 +24,8 @@ services: - "11935:1935" # Livestream RTMP port volumes: - assets:/app/client/dist - - ${DOCKER_VOLUME}/data:/data - - ${DOCKER_VOLUME}/config:/config + - ${PEERTUBE_DATA_VOLUME}:/data + - ${PEERTUBE_CONFIG_VOLUME}:/config labels: - "traefik.http.routers.peertube.rule=Host(`video.jafner.net`)" - "traefik.http.routers.peertube.tls.certresolver=lets-encrypt" @@ -45,7 +45,7 @@ services: - postgres.env - postgres_secrets.env volumes: - - ${DOCKER_VOLUME}/db:/var/lib/postgresql/data + - ${POSTGRES_CONFIG_VOLUME}:/var/lib/postgresql/data restart: "no" redis: @@ -54,7 +54,7 @@ services: networks: - peertube volumes: - - ${DOCKER_VOLUME}/redis:/data + - ${REDIS_CONFIG_VOLUME}:/data restart: "no" postfix: @@ -65,7 +65,7 @@ services: env_file: - postfix.env volumes: - - ${DOCKER_VOLUME}/opendkim/keys:/etc/opendkim/keys + - ${POSTFIX_CONFIG_VOLUME}:/etc/opendkim/keys restart: "no" networks: