5 # The webserver is not required, but recommended since a lot of optimizations went to its
6 # nginx configuration file. It runs the default nginx configuration without HTTPS nor SSL,
7 # so use it in production in tandem with an SSL-terminating reverse-proxy.
9 image: chocobozzz/peertube:webserver
12 dockerfile: Dockerfile.nginx
15 # If you provide your own reverse-proxy, otherwise not suitable for production:
17 # - "9000:80" # serving HTTP
20 # Switch sources if you downloaded the whole repository
21 #source: ../../nginx/peertube
22 source: ./docker-volume/nginx/peertube
23 target: /etc/nginx/conf.d/peertube.template
24 - assets:/var/www/peertube/peertube-latest/client/dist:ro
25 - ./docker-volume/data:/var/www/peertube/storage
31 # If you don't want to use the official image and build one from sources:
34 # dockerfile: ./support/docker/production/Dockerfile.buster
35 image: chocobozzz/peertube:production-buster
38 # If you provide your own webserver and reverse-proxy, otherwise not suitable for production:
40 # - "80:9000" # serving HTTP
42 - assets:/app/client/dist
43 - ./docker-volume/data:/data
44 - ./docker-volume/config:/config
52 image: postgres:13-alpine
56 - ./docker-volume/db:/var/lib/postgresql/data
62 - ./docker-volume/redis:/data
66 image: mwader/postfix-relay
70 - ./docker-volume/opendkim/keys:/etc/opendkim/keys
78 - subnet: 172.18.0.0/16