69 lines
1.8 KiB
YAML
69 lines
1.8 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
peertube:
|
|
# If you don't want to use the official image and build one from sources:
|
|
# build:
|
|
# context: .
|
|
# dockerfile: ./support/docker/production/Dockerfile.buster
|
|
image: chocobozzz/peertube:production-buster
|
|
# Use a static IP for this container because nginx does not handle proxy host change without reload
|
|
# This container could be restarted on crash or until the postgresql database is ready for connection
|
|
networks:
|
|
default:
|
|
ipv4_address: 172.18.0.42
|
|
web:
|
|
env_file:
|
|
- .env
|
|
ports:
|
|
- "1935:1935" # If you don't want to use the live feature, you can comment this line
|
|
# - "9000:9000" # If you provide your own webserver and reverse-proxy, otherwise not suitable for production
|
|
labels:
|
|
- traefik.http.routers.peertube.rule=Host(`peertube.jafner.net`)
|
|
- traefik.http.routers.peertube.tls=true
|
|
- traefik.http.routers.peertube.tls.certresolver=lets-encrypt
|
|
- traefik.http.services.peertube.loadbalancer.server.port=9000
|
|
volumes:
|
|
- assets:/app/client/dist
|
|
- ${DOCKER_DATA}/data:/data
|
|
- ${DOCKER_DATA}/config:/config
|
|
depends_on:
|
|
- postgres
|
|
- redis
|
|
- postfix
|
|
restart: "always"
|
|
|
|
postgres:
|
|
image: postgres:13-alpine
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- ${DOCKER_DATA}/db:/var/lib/postgresql/data
|
|
restart: "always"
|
|
|
|
redis:
|
|
image: redis:6-alpine
|
|
volumes:
|
|
- ${DOCKER_DATA}/redis:/data
|
|
restart: "always"
|
|
|
|
postfix:
|
|
image: mwader/postfix-relay
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- ${DOCKER_DATA}/opendkim/keys:/etc/opendkim/keys
|
|
restart: "always"
|
|
|
|
networks:
|
|
default:
|
|
ipam:
|
|
driver: default
|
|
config:
|
|
- subnet: 172.18.0.0/16
|
|
web:
|
|
external: true
|
|
|
|
volumes:
|
|
assets:
|