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

91 lines
2.0 KiB
YAML

version: "3.3"
services:
peertube:
image: jafner/peertube:dev
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:
- "11935:1935" # Livestream RTMP port
volumes:
- 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"
- "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:
- postgres.env
- postgres_secrets.env
volumes:
- postgres-config:/var/lib/postgresql/data
#- ${POSTGRES_CONFIG_VOLUME}:/var/lib/postgresql/data
restart: "no"
redis:
image: redis:6-alpine
container_name: peertube_redis
networks:
- peertube
volumes:
- redis-config:/data
#- ${REDIS_CONFIG_VOLUME}:/data
restart: "no"
postfix:
image: mwader/postfix-relay
container_name: peertube_postfix
networks:
- peertube
env_file:
- postfix.env
volumes:
- postfix-config:/etc/opendkim/keys
#- ${POSTFIX_CONFIG_VOLUME}:/etc/opendkim/keys
restart: "no"
networks:
peertube:
ipam:
driver: default
config:
- subnet: 172.80.0.0/16
web:
external: true
volumes:
peertube-assets:
peertube-config:
peertube-data:
postgres-config:
redis-config:
postfix-config: