aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/docker/production/config/production.yaml
diff options
context:
space:
mode:
authorkaiyou <pierre@jaury.eu>2018-01-29 08:52:20 +0100
committerChocobozzz <me@florianbigard.com>2018-01-29 08:52:20 +0100
commite8395f027b6c3e3f757c740e35b20e76c51b03bd (patch)
treeee0e761357b7407b6992600342306669de880689 /support/docker/production/config/production.yaml
parent8dfd8fd7ca376e7898c912bb985a7a4a997cd966 (diff)
downloadPeerTube-e8395f027b6c3e3f757c740e35b20e76c51b03bd.tar.gz
PeerTube-e8395f027b6c3e3f757c740e35b20e76c51b03bd.tar.zst
PeerTube-e8395f027b6c3e3f757c740e35b20e76c51b03bd.zip
Add production Alpine and Debian Stretch Docker images (#225)
* First pass at a (swarm-compatible) docker image Uses an existing traefik server as a https reverse proxy. * Add example config for a Docker swarm deployment * Point to traefik config for docker compose setup * Clarify that traefik is needed for the example config * Use node:8-stretch base image and don't install yarn (The base image already contains yarn.) * Initial commit for an Alpine Docker image * Fix docker volume path * Merge #213 and #225 and move files around * Remove unnecessary dependencies from the alpine build * Update Dockerfiles to match install path, config path, etc. * Update the configuration in the example compose file * Update the configuration in the example swarm file * Remove the declared networks and volumes from the compose example, which are not strictly required * Update attachment path in the documentation * Display traefik as a suggestion and not a required dependency * Update the Docker ignored files * Fix typos reported in #225 * Move production Dockerfiles to a production directory * Add the redis configuration settings * Add Docker files to the dockerignore * Make the signup limit configurable
Diffstat (limited to 'support/docker/production/config/production.yaml')
-rw-r--r--support/docker/production/config/production.yaml64
1 files changed, 64 insertions, 0 deletions
diff --git a/support/docker/production/config/production.yaml b/support/docker/production/config/production.yaml
new file mode 100644
index 000000000..4666ea2ed
--- /dev/null
+++ b/support/docker/production/config/production.yaml
@@ -0,0 +1,64 @@
1listen:
2 port: 9000
3
4# Correspond to your reverse proxy "listen" configuration
5webserver:
6 https: true
7 hostname: undefined
8 port: 443
9
10# Your database name will be "peertube"+database.suffix
11database:
12 hostname: 'db'
13 port: 5432
14 suffix: ''
15 username: 'postgres'
16 password: 'postgres'
17
18# Redis server for short time storage
19redis:
20 hostname: 'redis'
21 port: 6379
22 auth: null
23
24# From the project root directory
25storage:
26 avatars: '../data/avatars/'
27 certs: '../data/certs/'
28 videos: '../data/videos/'
29 logs: '../data/logs/'
30 previews: '../data/previews/'
31 thumbnails: '../data/thumbnails/'
32 torrents: '../data/torrents/'
33 cache: '../data/cache/'
34
35log:
36 level: 'info' # debug/info/warning/error
37
38cache:
39 previews:
40 size: 100 # Max number of previews you want to cache
41
42admin:
43 email: undefined
44
45signup:
46 enabled: false
47 limit: -1
48
49user:
50 # Default value of maximum video BYTES the user can upload (does not take into account transcoded files).
51 # -1 == unlimited
52 video_quota: -1
53
54# If enabled, the video will be transcoded to mp4 (x264) with "faststart" flag
55# Uses a lot of CPU!
56transcoding:
57 enabled: false
58 threads: 2
59 resolutions: # Only created if the original video has a higher resolution
60 240p: true
61 360p: true
62 480p: true
63 720p: true
64 1080p: true