2019-03-11 14:28:12 +00:00
|
|
|
version: "3.3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
2019-07-14 22:10:48 +00:00
|
|
|
nginx:
|
|
|
|
image: nginx:1.17-alpine
|
2019-03-11 14:28:12 +00:00
|
|
|
ports:
|
|
|
|
- "80:80" # The HTTP port
|
|
|
|
- "443:443" # The HTTPS port
|
2019-03-20 23:34:40 +00:00
|
|
|
volumes:
|
|
|
|
- ./nginx.conf:/etc/nginx/nginx.conf
|
2019-07-14 22:10:48 +00:00
|
|
|
- ./volumes/certbot/:/var/www/certbot/
|
|
|
|
- /etc/letsencrypt/:/etc/letsencrypt/:ro
|
2019-07-10 21:56:26 +00:00
|
|
|
- ./volumes-large:/data-external:ro
|
2019-03-20 23:34:40 +00:00
|
|
|
depends_on:
|
|
|
|
- peertube
|
|
|
|
restart: "always"
|
|
|
|
|
2019-03-11 14:28:12 +00:00
|
|
|
peertube:
|
2020-02-16 16:46:09 +00:00
|
|
|
image: chocobozzz/peertube:v2.1.0-buster
|
2019-03-11 14:28:12 +00:00
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
volumes:
|
2019-03-12 13:50:38 +00:00
|
|
|
- ./volumes/data:/data
|
|
|
|
- ./volumes/config:/config
|
2019-06-12 11:52:03 +00:00
|
|
|
- ./volumes-large:/data-external
|
2019-04-10 19:43:16 +00:00
|
|
|
environment:
|
|
|
|
- PEERTUBE_DB_USERNAME=${POSTGRES_USER}
|
|
|
|
- PEERTUBE_DB_PASSWORD=${POSTGRES_PASSWORD}
|
2019-03-11 14:28:12 +00:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
- redis
|
|
|
|
- postfix
|
|
|
|
restart: "always"
|
|
|
|
|
|
|
|
postgres:
|
|
|
|
image: postgres:10-alpine
|
|
|
|
volumes:
|
2019-03-12 13:50:38 +00:00
|
|
|
- ./volumes/db:/var/lib/postgresql/data
|
2019-04-10 19:43:16 +00:00
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=${POSTGRES_USER}
|
|
|
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
|
2019-03-20 23:34:40 +00:00
|
|
|
restart: "always"
|
2019-03-11 14:28:12 +00:00
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis:5-alpine
|
|
|
|
volumes:
|
2019-03-12 13:50:38 +00:00
|
|
|
- ./volumes/redis:/data
|
2019-03-20 23:34:40 +00:00
|
|
|
restart: "always"
|
2019-03-11 14:28:12 +00:00
|
|
|
|
|
|
|
postfix:
|
|
|
|
image: mwader/postfix-relay
|
|
|
|
environment:
|
|
|
|
- POSTFIX_myhostname=${PEERTUBE_WEBSERVER_HOSTNAME}
|
|
|
|
restart: "always"
|
2019-05-21 10:22:31 +00:00
|
|
|
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
ipam:
|
|
|
|
driver: default
|
|
|
|
config:
|
|
|
|
- subnet: 172.18.0.0/16
|