-
Notifications
You must be signed in to change notification settings - Fork 81
Maybe add some Docker examples? #246
Copy link
Copy link
Open
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-stoppedDockerfile:
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',
}),Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels