]>
Commit | Line | Data |
---|---|---|
e8395f02 | 1 | version: "3.3" |
2 | ||
3 | services: | |
4 | peertube: | |
5 | ||
6 | build: . | |
7 | image: peertube:stretch | |
8 | environment: | |
9 | PEERTUBE_HOSTNAME: my.domain.tld | |
10 | PEERTUBE_PORT: 443 | |
11 | PEERTUBE_HTTPS: true | |
12 | PEERTUBE_ADMIN_EMAIL: admin@domain.tld | |
13 | PEERTUBE_DB_USERNAME: user | |
14 | PEERTUBE_DB_PASSWORD: password | |
15 | PEERTUBE_SIGNUP_ENABLED: true | |
16 | PEERTUBE_TRANSCODING_ENABLED: true | |
17 | # Traefik labels are suggested as an example for people using Traefik, | |
18 | # remove them if you are using another reverse proxy. | |
19 | labels: | |
20 | traefik.enable: "true" | |
21 | traefik.frontend.rule: "Host:${PEERTUBE_HOSTNAME}" | |
22 | traefik.port: "9000" | |
23 | volumes: | |
24 | - ./data:/usr/src/app/data | |
25 | depends_on: | |
26 | - db | |
27 | ||
28 | db: | |
29 | image: postgres:10 | |
30 | environment: | |
31 | POSTGRES_USERNAME: user | |
32 | POSTGRES_PASSWORD: password | |
33 | POSTGRES_DB: peertube_prod | |
34 | volumes: | |
35 | - ./db:/var/lib/postgresql/data |