aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/docker/production/docker-compose.yml
diff options
context:
space:
mode:
authorBenjamin Bouvier <public@benj.me>2018-03-15 14:39:04 +0100
committerChocobozzz <me@florianbigard.com>2018-03-15 14:39:04 +0100
commitef48a0d50aec99472340fa0995e1739113190147 (patch)
tree7b08df1fffa3863e62f789939ceb4eee39d654a0 /support/docker/production/docker-compose.yml
parent2e3a0215d051dca1f7c8ef423564c8d37a255f77 (diff)
downloadPeerTube-ef48a0d50aec99472340fa0995e1739113190147.tar.gz
PeerTube-ef48a0d50aec99472340fa0995e1739113190147.tar.zst
PeerTube-ef48a0d50aec99472340fa0995e1739113190147.zip
[docker] Update production guidelines and docker-compose file; (#341)
Diffstat (limited to 'support/docker/production/docker-compose.yml')
-rw-r--r--support/docker/production/docker-compose.yml41
1 files changed, 29 insertions, 12 deletions
diff --git a/support/docker/production/docker-compose.yml b/support/docker/production/docker-compose.yml
index db1c7d587..b08cace76 100644
--- a/support/docker/production/docker-compose.yml
+++ b/support/docker/production/docker-compose.yml
@@ -1,19 +1,27 @@
1version: "3.3" 1version: "3.3"
2 2
3services: 3services:
4 peertube:
5 4
6 build: . 5 peertube:
6 build:
7 context: ../../../
8 dockerfile: ./support/docker/production/Dockerfile.stretch
7 image: peertube:stretch 9 image: peertube:stretch
8 environment: 10 environment:
9 PEERTUBE_HOSTNAME: my.domain.tld 11 PEERTUBE_HOSTNAME: my.domain.tld
10 PEERTUBE_PORT: 443 12 PEERTUBE_PORT: 443
11 PEERTUBE_HTTPS: true 13 PEERTUBE_HTTPS: "true"
12 PEERTUBE_ADMIN_EMAIL: admin@domain.tld 14 PEERTUBE_ADMIN_EMAIL: admin@domain.tld
13 PEERTUBE_DB_USERNAME: user 15 PEERTUBE_DB_HOSTNAME: postgres
14 PEERTUBE_DB_PASSWORD: password 16 PEERTUBE_DB_USERNAME: postgres_user
15 PEERTUBE_SIGNUP_ENABLED: true 17 PEERTUBE_DB_PASSWORD: postgres_password
16 PEERTUBE_TRANSCODING_ENABLED: true 18 PEERTUBE_SIGNUP_ENABLED: "true"
19 PEERTUBE_TRANSCODING_ENABLED: "true"
20 PEERTUBE_REDIS_HOSTNAME: redis
21 PEERTUBE_SMTP_HOSTNAME: mail.domain.tld
22 PEERTUBE_SMTP_PORT: 25
23 PEERTUBE_SMTP_FROM: noreply@peertube.domain.tld
24 PEERTUBE_SMTP_TLS: "true"
17 # Traefik labels are suggested as an example for people using Traefik, 25 # Traefik labels are suggested as an example for people using Traefik,
18 # remove them if you are using another reverse proxy. 26 # remove them if you are using another reverse proxy.
19 labels: 27 labels:
@@ -23,13 +31,22 @@ services:
23 volumes: 31 volumes:
24 - ./data:/usr/src/app/data 32 - ./data:/usr/src/app/data
25 depends_on: 33 depends_on:
26 - db 34 - postgres
35 - redis
36 restart: "always"
27 37
28 db: 38 postgres:
29 image: postgres:10 39 image: postgres:10
30 environment: 40 environment:
31 POSTGRES_USERNAME: user 41 POSTGRES_USER: postgres_user
32 POSTGRES_PASSWORD: password 42 POSTGRES_PASSWORD: postgres_password
33 POSTGRES_DB: peertube_prod 43 POSTGRES_DB: peertube
34 volumes: 44 volumes:
35 - ./db:/var/lib/postgresql/data 45 - ./db:/var/lib/postgresql/data
46 restart: "always"
47
48 redis:
49 image: redis
50 volumes:
51 - ./redis:/data
52 restart: "always"