From 1b16f1bcb54dddff5e4ed114a4f2e27958c95f41 Mon Sep 17 00:00:00 2001 From: Jonas 12t Date: Tue, 1 Jun 2021 13:35:31 +0400 Subject: [PATCH] first --- docker-compose.yml | 47 ++++++++++++++++++++++++++++++++++++++++ env_example | 53 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 100 insertions(+) create mode 100644 docker-compose.yml create mode 100644 env_example diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..13a384c --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,47 @@ +version: "3.8" + +services: + + peertube: + image: chocobozzz/peertube:production-buster + networks: + default: + ipv4_address: 172.36.0.42 + env_file: + - .env + + ports: + - "1935:1935" + - "127.0.0.1:3001:9000" + volumes: + - assets:/app/client/dist + - ./docker-volume/data:/data + - ./docker-volume/config:/config + depends_on: + - postgres + - redis + restart: "always" + + postgres: + image: postgres:13-alpine + env_file: + - .env + volumes: + - ./docker-volume/db:/var/lib/postgresql/data + restart: "always" + + redis: + image: redis:6-alpine + volumes: + - ./docker-volume/redis:/data + restart: "always" + +networks: + default: + ipam: + driver: default + config: + - subnet: 172.36.0.0/16 + +volumes: + assets: \ No newline at end of file diff --git a/env_example b/env_example new file mode 100644 index 0000000..543729b --- /dev/null +++ b/env_example @@ -0,0 +1,53 @@ +# Database / Postgres service configuration +POSTGRES_USER=eZauph1d +POSTGRES_PASSWORD=YouRo2oh + +# Postgres database name "peertube" +POSTGRES_DB=peertube + +# Editable only with a suffix : +#POSTGRES_DB=peertube_prod +#PEERTUBE_DB_SUFFIX=_prod +PEERTUBE_DB_USERNAME=eZauph1d +PEERTUBE_DB_PASSWORD=YouRo2oh +PEERTUBE_DB_SSL=false + +# Default to Postgres service name "postgres" in docker-compose.yml +PEERTUBE_DB_HOSTNAME=postgres + +# Server configuration +PEERTUBE_WEBSERVER_HOSTNAME=peertube.localhost + +# If you do not use https and a reverse-proxy in docker-compose.yml +#PEERTUBE_WEBSERVER_PORT=80 +#PEERTUBE_WEBSERVER_HTTPS=false +# If you need more than one IP as trust_proxy +# pass them as a comma separated array: +PEERTUBE_TRUST_PROXY=["127.0.0.1", "loopback", "172.18.0.0/16", "172.36.0.0/16"] + +# E-mail configuration +# If you use a Custom SMTP server +#PEERTUBE_SMTP_USERNAME= +#PEERTUBE_SMTP_PASSWORD= + +# Default to Postfix service name "postfix" in docker-compose.yml +# May be the hostname of your Custom SMTP server +PEERTUBE_SMTP_HOSTNAME=postfix +PEERTUBE_SMTP_PORT=25 +PEERTUBE_SMTP_FROM=noreply@ +PEERTUBE_SMTP_TLS=false +PEERTUBE_SMTP_DISABLE_STARTTLS=false +PEERTUBE_ADMIN_EMAIL= + +# Postfix service configuration +POSTFIX_myhostname= +# If you need to generate a list of sub/DOMAIN keys +# pass them as a whitespace separated string = +OPENDKIM_DOMAINS==peertube +# see https://github.com/wader/postfix-relay/pull/18 +OPENDKIM_RequireSafeKeys=no + +# /!\ Prefer to use the PeerTube admin interface to set the following configurations /!\ +#PEERTUBE_SIGNUP_ENABLED=true +#PEERTUBE_TRANSCODING_ENABLED=true +#PEERTUBE_CONTACT_FORM_ENABLED=true