aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/docker/production/docker-compose.yml
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/docker-compose.yml
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/docker-compose.yml')
-rw-r--r--support/docker/production/docker-compose.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/support/docker/production/docker-compose.yml b/support/docker/production/docker-compose.yml
new file mode 100644
index 000000000..db1c7d587
--- /dev/null
+++ b/support/docker/production/docker-compose.yml
@@ -0,0 +1,35 @@
1version: "3.3"
2
3services:
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