### Start Docker Compose Services Source: https://guides.viren070.me/selfhosting/template This command starts all services defined in the docker-compose.yml file in detached mode. Ensure Docker and Docker Compose are installed and configured. ```shell docker compose up -d ``` -------------------------------- ### Docker Installation Script Download Source: https://guides.viren070.me/selfhosting/docker Downloads the official Docker installation script from get.docker.com using curl. This script automates the installation of Docker and its dependencies on a Linux system. ```bash curl -fsSL https://get.docker.com -o install-docker.sh ``` -------------------------------- ### Configure Stremio Server with Docker Compose Source: https://guides.viren070.me/stremio/setup_platform=web-ios This YAML configuration defines a Docker Compose setup for the Stremio Server. It specifies the image to use, assigns a container name, maps the necessary ports, and sets the restart policy to 'unless-stopped'. The server can then be started using 'docker compose up -d'. ```yaml services: stremio-server: image: stremio/server:latest container_name: stremio-server ports: - "11470:11470" - "12470:12470" restart: unless-stopped ``` -------------------------------- ### Start Stremio Server with Docker Compose Source: https://guides.viren070.me/stremio/setup_platform=web-ios This command initiates the Stremio Server using a Docker Compose configuration file. It starts the defined services in detached mode, allowing the server to run in the background. The server will be accessible at http://localhost:11470 and https://localhost:12470. ```bash docker compose up -d ``` -------------------------------- ### Docker Installation Script Verification Source: https://guides.viren070.me/selfhosting/docker Displays the content of the downloaded Docker installation script using the `cat` command. This allows for manual verification of the script's actions before execution. ```bash cat install-docker.sh ``` -------------------------------- ### Docker Installation Script Dry Run Source: https://guides.viren070.me/selfhosting/docker Executes the Docker installation script with the `--dry-run` option to preview the commands it will perform without actually installing Docker. This is useful for understanding the installation process. ```bash sh install-docker.sh --dry-run ``` -------------------------------- ### Docker Installation Execution Source: https://guides.viren070.me/selfhosting/docker Runs the Docker installation script using `sudo` to perform the actual installation of Docker and its dependencies. This command requires root privileges. ```bash sudo sh install-docker.sh ``` -------------------------------- ### Run Stremio Server with Docker Source: https://guides.viren070.me/stremio/setup_platform=android This snippet demonstrates how to run the Stremio Server as a Docker container. It requires Docker to be installed. The command starts the server in detached mode, making it accessible via specific ports. ```bash docker run -d \ --name stremio-server \ -p 11470:11470 \ -p 12470:12470 \ stremio/server:latest ``` -------------------------------- ### Start Docker Compose Services with Profiles Source: https://guides.viren070.me/selfhosting/template This command starts specific services using profiles, in detached mode, and forces recreation of containers if they already exist. Use this to manage dependencies or specific service groups. ```shell docker compose --profile required --profile aiostreams up -d --force-recreate ``` -------------------------------- ### Docker Version Verification Source: https://guides.viren070.me/selfhosting/docker Checks if Docker has been successfully installed by printing its version information. This command should output the installed Docker version if the installation was successful. ```bash docker --version ``` -------------------------------- ### Docker Compose Service Definition Example Source: https://guides.viren070.me/selfhosting/docker Defines a compose.yaml file with two services, 'myservice1' and 'myservice2'. It illustrates common configurations such as image, container name, ports, environment variables with defaults and required values, volume mapping, labels, and restart policies. ```yaml services: myservice1: image: image1:tag1 container_name: mycontainer1 ports: - "8080:80" environment: - ENV_VAR1=value1 - ENV_VAR2=${SERVICE1_VAR2:-default_value} - ENV_VAR3=${SERVICE1_VAR3?Error message} env_file: - .custom.env volumes: - ./tmp:/tmp - image-data:/data labels: - "mylabel1=myvalue1" restart: unless-stopped myservice2: image: image2:tag2 container_name: mycontainer2 restart: unless-stopped expose: - 8080 environment: ENV_VAR2: value2 volumes: - ./tmp:/tmp - /opt/image2:/data labels: mylabel2: myvalue2 volumes: image-data: ``` -------------------------------- ### Torbox Referral Code Source: https://guides.viren070.me/aniyomi/setup This is a referral code for Torbox. Using this code may provide benefits such as free days for each purchase made. It should be entered during the account setup or subscription process. ```text 9ca21adb-dbcb-4fb0-9195-412a5f3519bc ``` -------------------------------- ### Configure SSH Agent Service (Windows PowerShell) Source: https://guides.viren070.me/selfhosting/oracle Configures the SSH agent service to start automatically on Windows and then starts the service. This is necessary to manage SSH keys efficiently. ```powershell Get-Service -Name ssh-agent | Set-Service -StartupType Automatic Start-Service ssh-agent ``` -------------------------------- ### Configure Stremio Server with Docker Compose Source: https://guides.viren070.me/stremio/setup_platform=android This snippet shows how to set up the Stremio Server using Docker Compose. It defines the service in a `compose.yaml` file and provides the command to start the server in detached mode. This method is useful for managing containerized applications. ```yaml services: stremio-server: image: stremio/server:latest container_name: stremio-server ports: - "11470:11470" - "12470:12470" restart: unless-stopped ``` -------------------------------- ### Deploy Required Docker Compose Profiles Source: https://guides.viren070.me/selfhosting/template Start the Traefik and Authelia services using Docker Compose with the 'required' profile in detached mode. This is a preliminary step to ensure core components are functioning. ```bash docker compose --profile required up -d ``` -------------------------------- ### Add Ingress Rule for Port Forwarding Source: https://guides.viren070.me/selfhosting/oracle Configure security rules to allow incoming traffic to your Oracle VPS. This example demonstrates adding an ingress rule to allow TCP traffic on a specific destination port (e.g., 443 for HTTPS) from any IP address (0.0.0.0/0). ```bash Add Ingress Rules: * Source Type: CIDR * Source CIDR: 0.0.0.0/0 * IP Protocol: TCP * Source Port Range: All * Destination Port Range: [PORT_NUMBER] * Description: [RULE_DESCRIPTION] ``` -------------------------------- ### Clone Docker Compose VPS Template Source: https://guides.viren070.me/selfhosting/template Download the Docker Compose VPS template from GitHub to the /opt directory and navigate into the cloned directory. This sets up the project structure. ```bash cd /opt git clone https://github.com/Viren070/docker-compose-vps-template.git docker cd docker ``` -------------------------------- ### List Directory Contents Source: https://guides.viren070.me/selfhosting/template Verify that the template files have been successfully downloaded by listing the contents of the current directory. You should see 'apps', 'data', 'compose.yaml', and '.env'. ```bash ls -a ``` -------------------------------- ### Run Stremio Server with Docker Source: https://guides.viren070.me/stremio/setup_platform=web-ios This command initiates the Stremio Server as a detached Docker container. It maps ports 11470 and 12470 from the host to the container, allowing access to the server. The container uses the 'stremio/server:latest' image. ```bash docker run -d \ --name stremio-server \ -p 11470:11470 \ -p 12470:12470 \ stremio/server:latest ``` -------------------------------- ### SSH Connection to Server Source: https://guides.viren070.me/selfhosting/template Connect to your server using SSH. Replace 'your-server-ip' with your server's actual IP address. If you use a different username, change 'ubuntu' accordingly. ```bash ssh ubuntu@your-server-ip ``` -------------------------------- ### Docker Volume Configuration in compose.yaml Source: https://guides.viren070.me/selfhosting/docker Defines how to configure named volumes and bind mounts within a Docker compose.yaml file for data persistence. Named volumes are managed by Docker, while bind mounts map host directories directly into containers. ```yaml volumes: image-data:/data ./tmp:/tmp /opt/image2:/data ``` -------------------------------- ### Docker Compose Build from Remote Dockerfile Source: https://guides.viren070.me/selfhosting/docker Shows how to configure a Docker Compose service to build its image from a remote Dockerfile hosted on a Git repository. This is useful when a pre-built image is not available and you need to build it from source. ```yaml services: myservice: build: context: https://github.com/mccoy88f/OMG-Premium-TV.git dockerfile: Dockerfile image: myservice:latest ``` -------------------------------- ### Transfer File from Oracle VPS using SCP Source: https://guides.viren070.me/selfhosting/oracle Use the Secure Copy Protocol (SCP) command to transfer a file from your Oracle VPS to your local machine. Replace '/path/to/file.txt' with the actual file path on the VPS, 'your_ip' with the instance's public IP address, and '/path/to/destination' with the local destination path. ```bash scp ubuntu@your_ip:/path/to/file.txt /path/to/destination ``` -------------------------------- ### Edit Environment Variables with Nano Source: https://guides.viren070.me/selfhosting/template Open and edit the '.env' file using the nano text editor in the terminal. This is one method to configure service-specific environment variables. ```bash nano .env ``` -------------------------------- ### View Docker Compose Logs Source: https://guides.viren070.me/selfhosting/template Monitor the logs of the services running with the 'required' profile. This is useful for troubleshooting and confirming that Traefik and Authelia are operating correctly. ```bash docker compose --profile required logs -f ```