Move data volume to NAS
This commit is contained in:
parent
c6b6c37f11
commit
6b777fcd0a
@ -1,2 +1,6 @@
|
|||||||
# Docker volume location
|
# Docker volume location
|
||||||
DOCKER_VOLUME=/mnt/nas/DockerData/peertube/
|
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/
|
@ -24,8 +24,8 @@ services:
|
|||||||
- "11935:1935" # Livestream RTMP port
|
- "11935:1935" # Livestream RTMP port
|
||||||
volumes:
|
volumes:
|
||||||
- assets:/app/client/dist
|
- assets:/app/client/dist
|
||||||
- ${DOCKER_VOLUME}/data:/data
|
- ${PEERTUBE_DATA_VOLUME}:/data
|
||||||
- ${DOCKER_VOLUME}/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"
|
||||||
@ -45,7 +45,7 @@ services:
|
|||||||
- postgres.env
|
- postgres.env
|
||||||
- postgres_secrets.env
|
- postgres_secrets.env
|
||||||
volumes:
|
volumes:
|
||||||
- ${DOCKER_VOLUME}/db:/var/lib/postgresql/data
|
- ${POSTGRES_CONFIG_VOLUME}:/var/lib/postgresql/data
|
||||||
restart: "no"
|
restart: "no"
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
@ -54,7 +54,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
- peertube
|
- peertube
|
||||||
volumes:
|
volumes:
|
||||||
- ${DOCKER_VOLUME}/redis:/data
|
- ${REDIS_CONFIG_VOLUME}:/data
|
||||||
restart: "no"
|
restart: "no"
|
||||||
|
|
||||||
postfix:
|
postfix:
|
||||||
@ -65,7 +65,7 @@ services:
|
|||||||
env_file:
|
env_file:
|
||||||
- postfix.env
|
- postfix.env
|
||||||
volumes:
|
volumes:
|
||||||
- ${DOCKER_VOLUME}/opendkim/keys:/etc/opendkim/keys
|
- ${POSTFIX_CONFIG_VOLUME}:/etc/opendkim/keys
|
||||||
restart: "no"
|
restart: "no"
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
|
Loading…
Reference in New Issue
Block a user