8 command: --docker # Tells Træfik to listen to docker
10 - "80:80" # The HTTP port
11 - "443:443" # The HTTPS port
13 - /var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events
14 - ./docker-volume/traefik/acme.json:/etc/acme.json
15 - ./docker-volume/traefik/traefik.toml:/traefik.toml
17 # If you want to use the Traefik dashboard, you should expose it on a
18 # subdomain with HTTPS and authentification:
19 # https://medium.com/@xavier.priour/secure-traefik-dashboard-with-https-and-password-in-docker-5b657e2aa15f
20 # https://github.com/containous/traefik/issues/880#issuecomment-310301168
23 # If you don't want to use the official image and build one from sources
26 # dockerfile: ./support/docker/production/Dockerfile.stretch
27 image: chocobozzz/peertube:production-stretch
30 # Traefik labels are suggested as an example for people using Traefik,
31 # remove them if you are using another reverse proxy.
33 traefik.enable: "true"
34 traefik.frontend.rule: "Host:${PEERTUBE_WEBSERVER_HOSTNAME}"
36 # If you don't want to use a reverse proxy (not suitable for production!)
40 - ./docker-volume/data:/data
41 - ./docker-volume/config:/config
49 image: postgres:10-alpine
51 POSTGRES_USER: ${PEERTUBE_DB_USERNAME}
52 POSTGRES_PASSWORD: ${PEERTUBE_DB_PASSWORD}
55 - ./docker-volume/db:/var/lib/postgresql/data
58 traefik.enable: "false"
63 - ./docker-volume/redis:/data
66 traefik.enable: "false"
69 image: mwader/postfix-relay
71 - POSTFIX_myhostname=${PEERTUBE_WEBSERVER_HOSTNAME}
73 traefik.enable: "false"
81 - subnet: 172.18.0.0/16