9 - "--docker" # Tells Træfik to listen to docker
10 - "--acme.email=${TRAEFIK_ACME_EMAIL}" # Let's Encrypt ACME email
11 - "--acme.domains=${TRAEFIK_ACME_DOMAINS}" # Let's Encrypt ACME domain list
13 - "80:80" # The HTTP port
14 - "443:443" # The HTTPS port
16 - /var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events
17 - ./docker-volume/traefik/acme.json:/etc/acme.json
18 - ./docker-volume/traefik/traefik.toml:/traefik.toml
20 # If you want to use the Traefik dashboard, you should expose it on a
21 # subdomain with HTTPS and authentification:
22 # https://medium.com/@xavier.priour/secure-traefik-dashboard-with-https-and-password-in-docker-5b657e2aa15f
23 # https://github.com/containous/traefik/issues/880#issuecomment-310301168
26 # If you don't want to use the official image and build one from sources
29 # dockerfile: ./support/docker/production/Dockerfile.buster
30 image: chocobozzz/peertube:production-buster
33 # Traefik labels are suggested as an example for people using Traefik,
34 # remove them if you are using another reverse proxy.
36 traefik.enable: "true"
37 traefik.frontend.rule: "Host:${PEERTUBE_WEBSERVER_HOSTNAME}"
39 # If you don't want to use a reverse proxy (not suitable for production!)
43 - ./docker-volume/data:/data
44 - ./docker-volume/config:/config
52 image: postgres:10-alpine
56 - ./docker-volume/db:/var/lib/postgresql/data
59 traefik.enable: "false"
64 - ./docker-volume/redis:/data
67 traefik.enable: "false"
70 image: mwader/postfix-relay
74 - ./docker-volume/opendkim/keys:/etc/opendkim/keys
76 traefik.enable: "false"
84 - subnet: 172.18.0.0/16