60 lines
1.7 KiB
Markdown
60 lines
1.7 KiB
Markdown
# ReviveTube Setup in a Docker
|
|
|
|
Setup: [jump](https://gitea.errexe.xyz/TheErrorExe/revivetube-docker/src/branch/main/README.md#setup)
|
|
|
|
Reverse Proxy nginx: [jump](https://gitea.errexe.xyz/TheErrorExe/revivetube-docker/src/branch/main/README.md#reverse-proxy-nginx)
|
|
|
|
# Setup
|
|
|
|
First, install docker with `sudo apt install docker.io && sudo curl -L "https://github.com/docker/compose/releases/download/v2.20.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && sudo chmod +x /usr/local/bin/docker-compose`
|
|
|
|
|
|
Then run
|
|
```bash
|
|
wget https://cloud.theerrorexe.dev/revivetube-docker.tar
|
|
docker load -i revivetube-docker.tar
|
|
```
|
|
Now Create a docker-compose.yml with this content:
|
|
```diff
|
|
version: "3.9"
|
|
|
|
services:
|
|
revivetube:
|
|
image: theerrorexe/revivetube:latest
|
|
ports:
|
|
- "5000:5000"
|
|
environment:
|
|
- GOOGLE_API_TOKEN=your_api_key
|
|
volumes:
|
|
- .:/app
|
|
restart: unless-stopped
|
|
```
|
|
Now run `sudo docker-compose up -d` or `sudo docker compose up -d`
|
|
|
|
ReviveTube should now run on http://localhost:5000
|
|
|
|
# Reverse Proxy nginx
|
|
|
|
Install nginx: `sudo apt install nginx`
|
|
Edit the Configuration at /etc/nginx/sites-available/default to
|
|
|
|
```diff
|
|
server {
|
|
listen 80;
|
|
server_name your_server.de;
|
|
|
|
location / {
|
|
proxy_pass http://localhost:5000;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
proxy_redirect off;
|
|
}
|
|
}
|
|
```
|
|
|
|
Replace your_server.de to your domain/subdomain
|
|
Reload nginx: `sudo systemctl reload nginx`
|
|
You should now see the ReviveTube Page at your domain
|