aboutsummaryrefslogtreecommitdiffhomepage
path: root/support/docker/production/swarm-stack.sample.yml
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-05-07 18:39:42 +0200
committerChocobozzz <me@florianbigard.com>2018-05-07 18:41:10 +0200
commitfd5e57bbe2accbdb16b6aa65337c5ef44b5bd8fb (patch)
tree7865c16ce0f4be446d0e54174ef5c210917c7f46 /support/docker/production/swarm-stack.sample.yml
parentd9c1882dd050f4a867a4bbfc3667424e41694ae1 (diff)
downloadPeerTube-fd5e57bbe2accbdb16b6aa65337c5ef44b5bd8fb.tar.gz
PeerTube-fd5e57bbe2accbdb16b6aa65337c5ef44b5bd8fb.tar.zst
PeerTube-fd5e57bbe2accbdb16b6aa65337c5ef44b5bd8fb.zip
Docker config directory as volume
Diffstat (limited to 'support/docker/production/swarm-stack.sample.yml')
-rw-r--r--support/docker/production/swarm-stack.sample.yml52
1 files changed, 0 insertions, 52 deletions
diff --git a/support/docker/production/swarm-stack.sample.yml b/support/docker/production/swarm-stack.sample.yml
deleted file mode 100644
index 794f44753..000000000
--- a/support/docker/production/swarm-stack.sample.yml
+++ /dev/null
@@ -1,52 +0,0 @@
1version: "3.3"
2
3services:
4 app:
5 image: peertube:stretch
6 environment:
7 PEERTUBE_HOSTNAME: my.domain.tld
8 PEERTUBE_PORT: 443
9 PEERTUBE_HTTPS: true
10 PEERTUBE_ADMIN_EMAIL: admin@domain.tld
11 PEERTUBE_DB_USERNAME: user
12 PEERTUBE_DB_PASSWORD: password
13 PEERTUBE_SIGNUP_ENABLED: true
14 PEERTUBE_TRANSCODING_ENABLED: true
15 labels: &labels
16 traefik.frontend.rule: "Host:my.domain.tld"
17 traefik.docker.network: traefik
18 traefik.port: "9000"
19 volumes:
20 - app_data:/usr/src/app/data
21 networks:
22 - traefik
23 - backend
24 depends_on:
25 - db
26 deploy:
27 labels: *labels
28 placement:
29 constraints:
30 - node.labels.peertube == 1
31
32 db:
33 image: postgres:10
34 environment:
35 POSTGRES_DB: peertube_prod
36 volumes:
37 - db_data:/var/lib/postgresql/data
38 networks:
39 - backend
40 deploy:
41 placement:
42 constraints:
43 - node.labels.peertube == 1
44
45volumes:
46 app_data:
47 db_data:
48
49networks:
50 backend:
51 traefik:
52 external: true