diff --git a/roles/docker-peertube/readme.md b/roles/docker-peertube/readme.md index 58c1c663..9b476ed7 100644 --- a/roles/docker-peertube/readme.md +++ b/roles/docker-peertube/readme.md @@ -1,4 +1,33 @@ # docker peertube +## track docker volumes +```bash +watch -n 2 "docker ps -a | grep peertube" +``` + +## clean rebuild +```bash +cd /home/administrator/docker-compose/peertube/ && +docker-compose down +docker volume rm peertube_assets peertube_config peertube_data peertube_database peertube_redis +docker-compose up -d +``` + +## access terminal +```bash +docker exec -it peertube-application-1 /bin/bash +``` + +## update config +```bash +apt update && apt install nano && nano ./config/default.yaml +``` + +## get root pasword +```bash +docker logs peertube-application-1 | grep -A1 root +``` + ## further information -- https://docs.joinpeertube.org/install-docker \ No newline at end of file +- https://docs.joinpeertube.org/install-docker +- https://github.com/Chocobozzz/PeerTube/issues/3091 \ No newline at end of file diff --git a/roles/docker-peertube/templates/docker-compose.yml.j2 b/roles/docker-peertube/templates/docker-compose.yml.j2 index fa43f2a0..2dbc46ed 100644 --- a/roles/docker-peertube/templates/docker-compose.yml.j2 +++ b/roles/docker-peertube/templates/docker-compose.yml.j2 @@ -28,6 +28,8 @@ services: volumes: - redis:/data restart: "always" + env_file: + - .env volumes: assets: database: diff --git a/roles/docker-peertube/templates/env.j2 b/roles/docker-peertube/templates/env.j2 index 39a5b52d..5b5b9ae0 100644 --- a/roles/docker-peertube/templates/env.j2 +++ b/roles/docker-peertube/templates/env.j2 @@ -11,8 +11,6 @@ PEERTUBE_DB_HOSTNAME=database PEERTUBE_WEBSERVER_HOSTNAME={{domain}} PEERTUBE_WEBSERVER_PORT=9000 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"] # E-mail configuration