]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - support/docker/production/docker-compose.yml
Remove unnecessary env variables now we have a .env file
[github/Chocobozzz/PeerTube.git] / support / docker / production / docker-compose.yml
1 version: "3.3"
2
3 services:
4
5 reverse-proxy:
6 image: traefik
7 command: --api --docker # Enables the web UI and tells Træfik to listen to docker
8 ports:
9 - "80:80" # The HTTP port
10 - "443:443" # The HTTPS port
11 - "8080:8080" # The Web UI (enabled by --api)
12 volumes:
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
16 restart: "always"
17
18 peertube:
19 # If you don't want to use the official image and build one from sources
20 # build:
21 # context: .
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.
26 labels:
27 traefik.enable: "true"
28 traefik.frontend.rule: "Host:${PEERTUBE_WEBSERVER_HOSTNAME}"
29 traefik.port: "9000"
30 # If you don't want to use a reverse proxy (not suitable for production!)
31 # ports:
32 # - "80:9000"
33 volumes:
34 - ./docker-volume/data:/data
35 - ./docker-volume/config:/config
36 depends_on:
37 - postgres
38 - redis
39 restart: "always"
40
41 postgres:
42 image: postgres:10-alpine
43 environment:
44 POSTGRES_USER: ${DB_USERNAME}
45 POSTGRES_PASSWORD: ${DB_PASSWORD}
46 POSTGRES_DB: peertube
47 volumes:
48 - ./docker-volume/db:/var/lib/postgresql/data
49 restart: "always"
50 labels:
51 traefik.enable: "false"
52
53 redis:
54 image: redis:4-alpine
55 volumes:
56 - ./docker-volume/redis:/data
57 restart: "always"
58 labels:
59 traefik.enable: "false"