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
26 # Traefik labels are suggested as an example for people using Traefik,
27 # remove them if you are using another reverse proxy.
29 traefik.enable: "true"
30 traefik.frontend.rule: "Host:${PEERTUBE_WEBSERVER_HOSTNAME}"
32 # If you don't want to use a reverse proxy (not suitable for production!)
36 - ./docker-volume/data:/data
37 - ./docker-volume/config:/config
44 image: postgres:10-alpine
46 POSTGRES_USER: ${PEERTUBE_DB_USERNAME}
47 POSTGRES_PASSWORD: ${PEERTUBE_DB_PASSWORD}
50 - ./docker-volume/db:/var/lib/postgresql/data
53 traefik.enable: "false"
58 - ./docker-volume/redis:/data
61 traefik.enable: "false"