7 command: --docker # Tells Træfik to listen to docker
9 - "80:80" # The HTTP port
10 - "443:443" # The HTTPS port
12 - /var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events
13 - ./docker-volume/traefik/acme.json:/etc/acme.json
14 - ./docker-volume/traefik/traefik.toml:/traefik.toml
16 # If you want to use the Traefik dashboard, you should expose it on a
17 # subdomain with HTTPS and authentification:
18 # https://medium.com/@xavier.priour/secure-traefik-dashboard-with-https-and-password-in-docker-5b657e2aa15f
19 # https://github.com/containous/traefik/issues/880#issuecomment-310301168
22 # If you don't want to use the official image and build one from sources
25 # dockerfile: ./support/docker/production/Dockerfile.stretch
26 image: chocobozzz/peertube:production-stretch
29 # Traefik labels are suggested as an example for people using Traefik,
30 # remove them if you are using another reverse proxy.
32 traefik.enable: "true"
33 traefik.frontend.rule: "Host:${PEERTUBE_WEBSERVER_HOSTNAME}"
35 # If you don't want to use a reverse proxy (not suitable for production!)
39 - ./docker-volume/data:/data
40 - ./docker-volume/config:/config
48 image: postgres:10-alpine
50 POSTGRES_USER: ${PEERTUBE_DB_USERNAME}
51 POSTGRES_PASSWORD: ${PEERTUBE_DB_PASSWORD}
54 - ./docker-volume/db:/var/lib/postgresql/data
57 traefik.enable: "false"
62 - ./docker-volume/redis:/data
65 traefik.enable: "false"
68 image: mwader/postfix-relay
70 - POSTFIX_myhostname=${PEERTUBE_WEBSERVER_HOSTNAME}
72 traefik.enable: "false"