]>
Commit | Line | Data |
---|---|---|
1 | version: "3.3" | |
2 | ||
3 | services: | |
4 | ||
5 | # The webserver is not required, but recommended since a lot of optimizations went to its | |
6 | # nginx configuration file. It runs the default nginx configuration without HTTPS nor SSL, | |
7 | # so use it in production in tandem with an SSL-terminating reverse-proxy. | |
8 | webserver: | |
9 | image: chocobozzz/peertube:webserver | |
10 | build: | |
11 | context: . | |
12 | dockerfile: Dockerfile.nginx | |
13 | env_file: | |
14 | - .env | |
15 | # If you provide your own reverse-proxy, otherwise not suitable for production: | |
16 | #ports: | |
17 | # - "9000:80" # serving HTTP | |
18 | volumes: | |
19 | - type: bind | |
20 | # Switch sources if you downloaded the whole repository | |
21 | #source: ../../nginx/peertube | |
22 | source: ./docker-volume/nginx/peertube | |
23 | target: /etc/nginx/conf.d/peertube.template | |
24 | - assets:/var/www/peertube/peertube-latest/client/dist:ro | |
25 | - ./docker-volume/data:/var/www/peertube/storage | |
26 | depends_on: | |
27 | - peertube | |
28 | restart: "always" | |
29 | ||
30 | peertube: | |
31 | # If you don't want to use the official image and build one from sources: | |
32 | #build: | |
33 | # context: . | |
34 | # dockerfile: ./support/docker/production/Dockerfile.buster | |
35 | image: chocobozzz/peertube:production-buster | |
36 | env_file: | |
37 | - .env | |
38 | # If you provide your own webserver and reverse-proxy, otherwise not suitable for production: | |
39 | #ports: | |
40 | # - "80:9000" # serving HTTP | |
41 | volumes: | |
42 | - assets:/app/client/dist | |
43 | - ./docker-volume/data:/data | |
44 | - ./docker-volume/config:/config | |
45 | depends_on: | |
46 | - postgres | |
47 | - redis | |
48 | - postfix | |
49 | restart: "always" | |
50 | ||
51 | postgres: | |
52 | image: postgres:13-alpine | |
53 | env_file: | |
54 | - .env | |
55 | volumes: | |
56 | - ./docker-volume/db:/var/lib/postgresql/data | |
57 | restart: "always" | |
58 | ||
59 | redis: | |
60 | image: redis:6-alpine | |
61 | volumes: | |
62 | - ./docker-volume/redis:/data | |
63 | restart: "always" | |
64 | ||
65 | postfix: | |
66 | image: mwader/postfix-relay | |
67 | env_file: | |
68 | - .env | |
69 | volumes: | |
70 | - ./docker-volume/opendkim/keys:/etc/opendkim/keys | |
71 | restart: "always" | |
72 | ||
73 | networks: | |
74 | default: | |
75 | ipam: | |
76 | driver: default | |
77 | config: | |
78 | - subnet: 172.18.0.0/16 | |
79 | ||
80 | volumes: | |
81 | assets: |