Skip to content

Maybe add some Docker examples? #246

@ghost

Description

Hi Maybe add an example of using the application inside a Docker container?

Running the application locally with the following setup:

docker-compose.yml:

# docker-compose.yml
services:
  youtube-local:
    build: .
    container_name: youtube-local
    ports:
      - "8080:8080"
    volumes:
      - .:/app
    restart: unless-stopped

Dockerfile:

FROM python:3.9.23-slim-trixie

# Install dependencies needed by gevent, brotli, etc.
RUN apt-get update && apt-get install -y \
    build-essential \
    libffi-dev \
    libssl-dev \
    curl \
    python3-dev \
    && rm -rf /var/lib/apt/lists/*

# Set working directory
WORKDIR /app

# Copy everything
COPY . /app

# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Expose the app port
EXPOSE 8080

# Run the server
CMD ["python", "server.py"]

Settings.py:

    ('allow_foreign_addresses', {
        'type': bool,
        'default': True,
        'comment': '''This will allow others to connect to your Youtube Local instance as a website.
For security reasons, enabling this is not recommended.''',
        'hidden': True,
        'category': 'network',
    }),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions