5 # The reverse-proxy only does SSL termination and automatic certificate generation. You can
6 # replace it with any other reverse-proxy, in which case you can remove 'traefik.*' labels.
11 - "--docker" # Tells Træfik to listen to docker
12 - "--acme.email=${TRAEFIK_ACME_EMAIL}" # Let's Encrypt ACME email
13 - "--acme.domains=${TRAEFIK_ACME_DOMAINS}" # Let's Encrypt ACME domain list
15 - "80:80" # The HTTP port
16 - "443:443" # The HTTPS port
18 - /var/run/docker.sock:/var/run/docker.sock # So that Træfik can listen to the Docker events
19 - ./docker-volume/traefik/acme.json:/etc/acme.json
20 - ./docker-volume/traefik/traefik.toml:/traefik.toml
23 # The webserver is not required, but recommended since a lot of optimizations went to its
24 # nginx configuration file. It runs the default nginx configuration without HTTPS nor SSL,
25 # so use it in production in tandem with an SSL-terminating reverse-proxy like above.
29 dockerfile: Dockerfile.nginx
32 # If you provide your own reverse-proxy, otherwise not suitable for production:
37 # Switch sources if you downloaded the nginx configuration without the whole repository
39 source: ../../nginx/peertube
40 target: /etc/nginx/conf.d/peertube.template
41 - assets:/var/www/peertube/peertube-latest/client/dist:ro
42 - ./docker-volume/data:/var/www/peertube/storage
47 traefik.enable: "true"
48 traefik.frontend.rule: "Host:${PEERTUBE_WEBSERVER_HOSTNAME}"
52 # If you don't want to use the official image and build one from sources:
55 # dockerfile: ./support/docker/production/Dockerfile.buster
56 image: chocobozzz/peertube:production-buster
59 # If you provide your own webserver and reverse-proxy, otherwise not suitable for production:
63 - assets:/app/client/dist
64 - ./docker-volume/data:/data
65 - ./docker-volume/config:/config
72 traefik.enable: "false"
75 image: postgres:10-alpine
79 - ./docker-volume/db:/var/lib/postgresql/data
82 traefik.enable: "false"
87 - ./docker-volume/redis:/data
90 traefik.enable: "false"
93 image: mwader/postfix-relay
97 - ./docker-volume/opendkim/keys:/etc/opendkim/keys
99 traefik.enable: "false"
107 - subnet: 172.18.0.0/16