Jafner.net/homelab/jafner-net/config/peertube/docker-compose.yml

88 lines
1.9 KiB
YAML
Raw Normal View History

version: "3.3"
services:
peertube:
image: chocobozzz/peertube:production-buster
container_name: peertube_peertube
logging:
driver: loki
options:
loki-url: http://localhost:3100/loki/api/v1/push
loki-batch-size: "50"
loki-retries: "1"
loki-timeout: "2s"
keep-file: "true"
networks:
web:
peertube:
ipv4_address: 172.80.0.42
env_file:
- peertube.env
- peertube_secrets.env
ports:
2023-04-05 19:24:43 -07:00
- "11935:1935" # Livestream RTMP port
volumes:
- assets:/app/client/dist
2023-04-06 12:49:55 -07:00
#- nas:/data
- ${PEERTUBE_DATA_VOLUME}:/data
2023-04-05 23:10:42 -07:00
- ${PEERTUBE_CONFIG_VOLUME}:/config
labels:
- "traefik.http.routers.peertube.rule=Host(`video.jafner.net`)"
- "traefik.http.routers.peertube.tls.certresolver=lets-encrypt"
- "traefik.http.services.peertube.loadbalancer.server.port=9000"
depends_on:
- postgres
- redis
- postfix
restart: "no"
postgres:
image: postgres:13-alpine
container_name: peertube_postgres
networks:
- peertube
env_file:
2023-04-05 19:36:29 -07:00
- postgres.env
- postgres_secrets.env
volumes:
2023-04-05 23:10:42 -07:00
- ${POSTGRES_CONFIG_VOLUME}:/var/lib/postgresql/data
restart: "no"
redis:
image: redis:6-alpine
container_name: peertube_redis
networks:
- peertube
volumes:
2023-04-05 23:10:42 -07:00
- ${REDIS_CONFIG_VOLUME}:/data
restart: "no"
postfix:
image: mwader/postfix-relay
container_name: peertube_postfix
networks:
- peertube
env_file:
2023-04-05 19:36:29 -07:00
- postfix.env
volumes:
2023-04-05 23:10:42 -07:00
- ${POSTFIX_CONFIG_VOLUME}:/etc/opendkim/keys
restart: "no"
networks:
peertube:
ipam:
driver: default
config:
- subnet: 172.80.0.0/16
web:
external: true
volumes:
assets:
2023-04-06 12:49:55 -07:00
#nas:
# driver: local
# driver_opts:
# type: cifs
# device: //192.168.50.1/AppData
# o: "user=user,pass=resu,uid=1000,gid=1000,_netdev,vers=3.0"