This repository has been archived by the owner on Jul 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
98 lines (91 loc) · 2.04 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
version: '3.9'
services:
# You can comment this webserver section if you want to use another webserver/proxy
web:
container_name: motibus_web
hostname: motibus_web
#image: chocobozzz/peertube-webserver:latest
# If you don't want to use the official image and build one from sources:
build:
context: ./images/nginx
dockerfile: Dockerfile
env_file:
- .env
expose:
- '80'
networks:
- motibus-link
- planet-link
volumes:
- type: bind
# Switch sources if you downloaded the whole repository
#source: ../../nginx/peertube
source: ./images/nginx/peertube.conf
target: /etc/nginx/conf.d/peertube.template
- assets:/var/www/peertube/peertube-latest/client/dist:ro
- ./var/peertube/data:/var/www/peertube/storage
depends_on:
- peertube
restart: "always"
peertube:
container_name: motibus_peertube
hostname: motibus_peertube
image: motibus_peertube
build:
context: ./images/peertube
networks:
motibus-link:
ipv4_address: 172.54.0.42
env_file:
- .env
expose:
- '9000'
ports:
- '1935:1935'
volumes:
- assets:/app/client/dist
- ./var/peertube/data:/data
- ./var/peertube/config:/config
depends_on:
- postgres
- redis
- postfix
restart: "always"
postgres:
image: postgres:13-alpine
env_file:
- .env
volumes:
- ./var/db:/var/lib/postgresql/data
restart: "always"
networks:
- motibus-link
redis:
image: redis:6-alpine
volumes:
- ./var/redis:/data
restart: "always"
networks:
- motibus-link
postfix:
image: mwader/postfix-relay
env_file:
- .env
volumes:
- ./var/opendkim/keys:/etc/opendkim/keys
restart: "always"
networks:
- motibus-link
networks:
motibus-link:
external: false
ipam:
driver: default
config:
- subnet: 172.54.0.0/16
planet-link:
external:
name: planet-link
volumes:
assets: