-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yaml
78 lines (74 loc) · 2.53 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
services:
peertube:
# If you don't want to use the official image and build one from sources:
# build:
# context: .
# dockerfile: ./support/docker/production/Dockerfile.bookworm
image: ${PEERTUBE_IMAGE}
environment:
- PEERTUBE_DB_USERNAME=${PEERTUBE_POSTGRES_USER}
- PEERTUBE_DB_PASSWORD=${PEERTUBE_POSTGRES_PASSWORD}
- PEERTUBE_DB_SSL=${PEERTUBE_DB_SSL}
- PEERTUBE_DB_HOSTNAME=postgres
- PEERTUBE_WEBSERVER_HOSTNAME=${PEERTUBE_TRAEFIK_HOST}
- PEERTUBE_TRUST_PROXY=${PEERTUBE_TRUST_PROXY}
- PEERTUBE_SECRET=${PEERTUBE_SECRET}
- PEERTUBE_SMTP_USERNAME=${PEERTUBE_SMTP_USERNAME}
- PEERTUBE_SMTP_PASSWORD=${PEERTUBE_SMTP_PASSWORD}
- PEERTUBE_SMTP_HOSTNAME=${PEERTUBE_SMTP_HOSTNAME}
- PEERTUBE_SMTP_PORT=${PEERTUBE_SMTP_PORT}
- PEERTUBE_SMTP_FROM=${PEERTUBE_SMTP_FROM}
- PEERTUBE_SMTP_TLS=${PEERTUBE_SMTP_TLS}
- PEERTUBE_SMTP_DISABLE_STARTTLS=${PEERTUBE_SMTP_DISABLE_STARTTLS}
- PEERTUBE_ADMIN_EMAIL=${PEERTUBE_ADMIN_EMAIL}
- POSTFIX_myhostname=${PEERTUBE_POSTFIX_MYHOSTNAME}
- OPENDKIM_DOMAINS=${PEERTUBE_OPENDKIM_DOMAINS}
- OPENDKIM_RequireSafeKeys=${PEERTUBE_OPENDKIM_REQUIRESAFEKEYS}
- PEERTUBE_OBJECT_STORAGE_UPLOAD_ACL_PUBLIC="public-read"
- PEERTUBE_OBJECT_STORAGE_UPLOAD_ACL_PRIVATE="private"
- PEERTUBE_LOG_LEVEL=${PEERTUBE_LOG_LEVEL}
volumes:
- data:/data
- config:/config
depends_on:
- postgres
- redis
- postfix
restart: "unless-stopped"
postgres:
image: ${PEERTUBE_POSTGRES_IMAGE}
environment:
- POSTGRES_USER=${PEERTUBE_POSTGRES_USER}
- POSTGRES_PASSWORD=${PEERTUBE_POSTGRES_PASSWORD}
- POSTGRES_DB=peertube
volumes:
- postgres:/var/lib/postgresql/data
restart: "unless-stopped"
labels:
- "backup-volume.stop-during-backup=true"
redis:
image: redis:6-alpine
volumes:
- redis:/data
restart: "unless-stopped"
labels:
- "backup-volume.stop-during-backup=true"
postfix:
image: mwader/postfix-relay
environment:
- PEERTUBE_ADMIN_EMAIL=${PEERTUBE_ADMIN_EMAIL}
- PEERTUBE_SMTP_FROM=${PEERTUBE_SMTP_FROM}
- POSTFIX_myhostname=${PEERTUBE_POSTFIX_MYHOSTNAME}
- OPENDKIM_DOMAINS=${PEERTUBE_OPENDKIM_DOMAINS}
- OPENDKIM_RequireSafeKeys=${PEERTUBE_OPENDKIM_REQUIRESAFEKEYS}
volumes:
- postfix:/etc/opendkim/keys
restart: "unless-stopped"
labels:
- "backup-volume.stop-during-backup=true"
volumes:
postfix:
redis:
postgres:
config:
data: