From 8619d874e0b45ed219b07c1e4146ea175e97262c Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Fri, 7 Apr 2023 09:21:54 -0700 Subject: [PATCH] Move all volumes to internal, ephemeral --- .../config/peertube/docker-compose.yml | 24 +++++++++++++------ 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/homelab/jafner-net/config/peertube/docker-compose.yml b/homelab/jafner-net/config/peertube/docker-compose.yml index 36416b8a..bda38db4 100644 --- a/homelab/jafner-net/config/peertube/docker-compose.yml +++ b/homelab/jafner-net/config/peertube/docker-compose.yml @@ -22,9 +22,11 @@ services: ports: - "11935:1935" # Livestream RTMP port volumes: - - assets:/app/client/dist - - ${PEERTUBE_DATA_VOLUME}:/data - - ${PEERTUBE_CONFIG_VOLUME}:/config + - peertube-assets:/app/client/dist + - peertube-data:/data + #- ${PEERTUBE_DATA_VOLUME}:/data + - peertube-config:/config + #- ${PEERTUBE_CONFIG_VOLUME}:/config labels: - "traefik.http.routers.peertube.rule=Host(`video.jafner.net`)" - "traefik.http.routers.peertube.tls.certresolver=lets-encrypt" @@ -44,7 +46,8 @@ services: - postgres.env - postgres_secrets.env volumes: - - ${POSTGRES_CONFIG_VOLUME}:/var/lib/postgresql/data + - postgres-config:/var/lib/postgresql/data + #- ${POSTGRES_CONFIG_VOLUME}:/var/lib/postgresql/data restart: "no" redis: @@ -53,7 +56,8 @@ services: networks: - peertube volumes: - - ${REDIS_CONFIG_VOLUME}:/data + - redis-config:/data + #- ${REDIS_CONFIG_VOLUME}:/data restart: "no" postfix: @@ -64,7 +68,8 @@ services: env_file: - postfix.env volumes: - - ${POSTFIX_CONFIG_VOLUME}:/etc/opendkim/keys + - postfix-config:/etc/opendkim/keys + #- ${POSTFIX_CONFIG_VOLUME}:/etc/opendkim/keys restart: "no" networks: @@ -77,4 +82,9 @@ networks: external: true volumes: - assets: + peertube-assets: + peertube-config: + peertube-data: + postgres-config: + redis-config: + postfix-config: