Move all volumes to internal, ephemeral

This commit is contained in:
Joey Hafner 2023-04-07 09:21:54 -07:00
parent b01fb9a29c
commit 8619d874e0

View File

@ -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: