Jafner.net/archive/docker_config/peertube/docker-compose.yml

71 lines
1.5 KiB
YAML
Raw Normal View History

2021-10-04 22:18:59 -07:00
version: "3.3"
services:
peertube:
image: chocobozzz/peertube:production-buster
container_name: peertube_peertube
networks:
web:
2021-10-04 22:18:59 -07:00
peertube:
ipv4_address: 172.80.0.42
2021-10-04 22:18:59 -07:00
env_file:
- .env
ports:
- "1935:1935" # If you don't want to use the live feature, you can comment this line
volumes:
- assets:/app/client/dist
2021-10-04 22:27:14 -07:00
- ${DOCKER_VOLUME}/data:/data
- ${DOCKER_VOLUME}/config:/config
labels:
- "traefik.http.routers.peertube.rule=Host(`peertube.jafner.net`)"
- "traefik.http.routers.peertube.tls.certresolver=lets-encrypt"
- "traefik.http.services.peertube.loadbalancer.server.port=9000"
2021-10-04 22:18:59 -07:00
depends_on:
- postgres
- redis
- postfix
2021-12-20 22:54:13 -08:00
restart: "unless-stopped"
2021-10-04 22:18:59 -07:00
postgres:
image: postgres:13-alpine
container_name: peertube_postgres
networks:
- peertube
env_file:
- .env
volumes:
2021-10-04 22:27:14 -07:00
- ${DOCKER_VOLUME}/db:/var/lib/postgresql/data
2021-12-20 22:54:13 -08:00
restart: "unless-stopped"
2021-10-04 22:18:59 -07:00
redis:
image: redis:6-alpine
container_name: peertube_redis
networks:
- peertube
volumes:
2021-10-04 22:27:14 -07:00
- ${DOCKER_VOLUME}/redis:/data
2021-12-20 22:54:13 -08:00
restart: "unless-stopped"
2021-10-04 22:18:59 -07:00
postfix:
image: mwader/postfix-relay
container_name: peertube_postfix
networks:
- peertube
env_file:
- .env
volumes:
2021-10-04 22:27:14 -07:00
- ${DOCKER_VOLUME}/opendkim/keys:/etc/opendkim/keys
2021-12-20 22:54:13 -08:00
restart: "unless-stopped"
2021-10-04 22:18:59 -07:00
networks:
peertube:
ipam:
driver: default
config:
- subnet: 172.80.0.0/16
2021-10-04 22:18:59 -07:00
web:
external: true
volumes:
assets: