]>
Commit | Line | Data |
---|---|---|
e8395f02 | 1 | version: "3.3" |
2 | ||
3 | services: | |
e8395f02 | 4 | |
b44a9630 C |
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 | ||
ef48a0d5 | 18 | peertube: |
13a6b536 C |
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 | |
779f0000 | 23 | image: chocobozzz/peertube:production-stretch |
08c11bec C |
24 | env_file: |
25 | - .env | |
e8395f02 | 26 | # Traefik labels are suggested as an example for people using Traefik, |
27 | # remove them if you are using another reverse proxy. | |
28 | labels: | |
29 | traefik.enable: "true" | |
fd5e57bb | 30 | traefik.frontend.rule: "Host:${PEERTUBE_WEBSERVER_HOSTNAME}" |
e8395f02 | 31 | traefik.port: "9000" |
4aeb67a5 C |
32 | # If you don't want to use a reverse proxy (not suitable for production!) |
33 | # ports: | |
34 | # - "80:9000" | |
e8395f02 | 35 | volumes: |
fd5e57bb C |
36 | - ./docker-volume/data:/data |
37 | - ./docker-volume/config:/config | |
e8395f02 | 38 | depends_on: |
ef48a0d5 BB |
39 | - postgres |
40 | - redis | |
41 | restart: "always" | |
e8395f02 | 42 | |
ef48a0d5 | 43 | postgres: |
0c49373a | 44 | image: postgres:10-alpine |
e8395f02 | 45 | environment: |
08c11bec C |
46 | POSTGRES_USER: ${PEERTUBE_DB_USERNAME} |
47 | POSTGRES_PASSWORD: ${PEERTUBE_DB_PASSWORD} | |
ef48a0d5 | 48 | POSTGRES_DB: peertube |
e8395f02 | 49 | volumes: |
fd5e57bb | 50 | - ./docker-volume/db:/var/lib/postgresql/data |
ef48a0d5 | 51 | restart: "always" |
b44a9630 C |
52 | labels: |
53 | traefik.enable: "false" | |
ef48a0d5 BB |
54 | |
55 | redis: | |
0c49373a | 56 | image: redis:4-alpine |
ef48a0d5 | 57 | volumes: |
fd5e57bb | 58 | - ./docker-volume/redis:/data |
ef48a0d5 | 59 | restart: "always" |
b44a9630 | 60 | labels: |
f83e339b | 61 | traefik.enable: "false" |