Peertube, verified and packaged by Elestio
380
Peertube PeerTube is a tool for sharing online videos developed by Framasoft, a french non-profit.
Deploy a fully managed Peertube on elest.io if you want a free and open-source, decentralized, ActivityPub federated video platform powered by WebTorrent, that uses peer-to-peer technology to reduce load on individual servers when viewing videos.
You can deploy it easily with the following command:
git clone https://github.com/elestio-examples/peertube.git
Copy the .env file from tests folder to the project directory
cp ./tests/.env ./.env
Edit the .env file with your own values.
Create data folders with correct permissions
mkdir -p ./assets
mkdir -p ./docker-volume/data
mkdir -p ./docker-volume/config
mkdir -p ./docker-volume/db
mkdir -p ./docker-volume/redis
mkdir -p ./docker-volume/opendkim/keys
chown -R 1001:1001 ./assets
chown -R 1001:1001 ./docker-volume/data
chown -R 1001:1001 ./docker-volume/config
chown -R 1001:1001 ./docker-volume/db
chown -R 1001:1001 ./docker-volume/redis
chown -R 1001:1001 ./docker-volume/opendkim/keys
Run the project with the following command
docker-compose up -d
You can access the Web UI at: http://your-domain:9000
Here are some example snippets to help you get started creating a container.
version: "3.3"
services:
peertube:
image: elestio4test/peertube:${SOFTWARE_VERSION_TAG}
networks:
default:
ipv4_address: 172.18.0.42
env_file:
- .env
ports:
- "9000:9000"
volumes:
- assets:/app/client/dist
- ./docker-volume/data:/data
- ./docker-volume/config:/config
depends_on:
- postgres
- redis
- postfix
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"
postfix:
image: mwader/postfix-relay
env_file:
- .env
volumes:
- ./docker-volume/opendkim/keys:/etc/opendkim/keys
restart: "always"
networks:
default:
ipam:
driver: default
config:
- subnet: 172.18.0.0/16
volumes:
assets:
| Variable | Value (example) |
|---|---|
| SOFTWARE_VERSION_TAG | latest |
| USER | admin |
| PASSWORD | your-password |
| SECRET | your-Secret |
| APIKEY | your-APIKEY |
| DOMAIN | https://your.domain |
| SESSION_DURATION | 1d |
The Elestio Peertube Docker image sends the container logs to stdout. To view the logs, you can use the following command:
docker-compose logs -f
To stop the stack you can use the following command:
docker-compose down
To make backup and restore operations easier, we are using folder volume mounts. You can simply stop your stack with docker-compose down, then backup all the files and subfolders in the folder near the docker-compose.yml file.
Creating a ZIP Archive For example, if you want to create a ZIP archive, navigate to the folder where you have your docker-compose.yml file and use this command:
zip -r myarchive.zip .
Restoring from ZIP Archive To restore from a ZIP archive, unzip the archive into the original folder using the following command:
unzip myarchive.zip -d /path/to/original/folder
Starting Your Stack Once your backup is complete, you can start your stack again with the following command:
docker-compose up -d
That's it! With these simple steps, you can easily backup and restore your data volumes using Docker Compose.
Content type
Image
Digest
sha256:a629f63eb…
Size
505.1 MB
Last updated
almost 3 years ago
docker pull elestio4test/peertube