Move all volumes to internal, ephemeral

This commit is contained in:
Joey Hafner 2023-04-07 09:21:54 -07:00
parent 0f6c345850
commit 0c326d9c81

View File

@ -22,9 +22,11 @@ services:
ports: ports:
- "11935:1935" # Livestream RTMP port - "11935:1935" # Livestream RTMP port
volumes: volumes:
- assets:/app/client/dist - peertube-assets:/app/client/dist
- ${PEERTUBE_DATA_VOLUME}:/data - peertube-data:/data
- ${PEERTUBE_CONFIG_VOLUME}:/config #- ${PEERTUBE_DATA_VOLUME}:/data
- peertube-config:/config
#- ${PEERTUBE_CONFIG_VOLUME}:/config
labels: labels:
- "traefik.http.routers.peertube.rule=Host(`video.jafner.net`)" - "traefik.http.routers.peertube.rule=Host(`video.jafner.net`)"
- "traefik.http.routers.peertube.tls.certresolver=lets-encrypt" - "traefik.http.routers.peertube.tls.certresolver=lets-encrypt"
@ -44,7 +46,8 @@ services:
- postgres.env - postgres.env
- postgres_secrets.env - postgres_secrets.env
volumes: volumes:
- ${POSTGRES_CONFIG_VOLUME}:/var/lib/postgresql/data - postgres-config:/var/lib/postgresql/data
#- ${POSTGRES_CONFIG_VOLUME}:/var/lib/postgresql/data
restart: "no" restart: "no"
redis: redis:
@ -53,7 +56,8 @@ services:
networks: networks:
- peertube - peertube
volumes: volumes:
- ${REDIS_CONFIG_VOLUME}:/data - redis-config:/data
#- ${REDIS_CONFIG_VOLUME}:/data
restart: "no" restart: "no"
postfix: postfix:
@ -64,7 +68,8 @@ services:
env_file: env_file:
- postfix.env - postfix.env
volumes: volumes:
- ${POSTFIX_CONFIG_VOLUME}:/etc/opendkim/keys - postfix-config:/etc/opendkim/keys
#- ${POSTFIX_CONFIG_VOLUME}:/etc/opendkim/keys
restart: "no" restart: "no"
networks: networks:
@ -77,4 +82,9 @@ networks:
external: true external: true
volumes: volumes:
assets: peertube-assets:
peertube-config:
peertube-data:
postgres-config:
redis-config:
postfix-config: