7 command: --api --docker # Enables the web UI and tells Træfik to listen to docker
9 - "80:80" # The HTTP port
10 - "443:443" # The HTTPS port
11 - "8080:8080" # The Web UI (enabled by --api)
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
19 # If you don't want to use the official image and build one from sources
22 # dockerfile: ./support/docker/production/Dockerfile.stretch
23 image: chocobozzz/peertube:production-stretch
24 # Traefik labels are suggested as an example for people using Traefik,
25 # remove them if you are using another reverse proxy.
27 traefik.enable: "true"
28 traefik.frontend.rule: "Host:${PEERTUBE_WEBSERVER_HOSTNAME}"
30 # If you don't want to use a reverse proxy (not suitable for production!)
34 - ./docker-volume/data:/data
35 - ./docker-volume/config:/config
42 image: postgres:10-alpine
44 POSTGRES_USER: ${DB_USERNAME}
45 POSTGRES_PASSWORD: ${DB_PASSWORD}
48 - ./docker-volume/db:/var/lib/postgresql/data
51 traefik.enable: "false"
56 - ./docker-volume/redis:/data
59 traefik.enable: "false"