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.
11 dockerfile: Dockerfile.nginx
14 # If you provide your own reverse-proxy, otherwise not suitable for production:
16 # - "9000:80" # serving HTTP
19 # Switch sources if you downloaded the nginx configuration without the whole repository
21 source: ../../nginx/peertube
22 target: /etc/nginx/conf.d/peertube.template
23 - assets:/var/www/peertube/peertube-latest/client/dist:ro
24 - ./docker-volume/data:/var/www/peertube/storage
30 # If you don't want to use the official image and build one from sources:
33 # dockerfile: ./support/docker/production/Dockerfile.buster
34 image: chocobozzz/peertube:production-buster
37 # If you provide your own webserver and reverse-proxy, otherwise not suitable for production:
39 # - "80:9000" # serving HTTP
41 - assets:/app/client/dist
42 - ./docker-volume/data:/data
43 - ./docker-volume/config:/config
51 image: postgres:10-alpine
55 - ./docker-volume/db:/var/lib/postgresql/data
61 - ./docker-volume/redis:/data
65 image: mwader/postfix-relay
69 - ./docker-volume/opendkim/keys:/etc/opendkim/keys
77 - subnet: 172.18.0.0/16