Containerization for KolibriOS server infrastructure
This commit is contained in:
@@ -15,9 +15,3 @@ htmlcov/
|
||||
|
||||
# Docs
|
||||
docs/_build/
|
||||
|
||||
# Our's
|
||||
Dockerfile
|
||||
.env
|
||||
./static/*.css
|
||||
./static/*.css.map
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
FROM python:3.13-alpine
|
||||
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN pip install --no-cache-dir beautifulsoup4 requests
|
||||
|
||||
COPY app.py /app/app.py
|
||||
|
||||
EXPOSE 8888
|
||||
|
||||
CMD ["python", "/app/app.py", "--host", "0.0.0.0", "--port", "8888"]
|
||||
@@ -32,7 +32,6 @@ UA_POOL = [
|
||||
]
|
||||
RETRYABLE_CODES = {429, 500, 502, 503, 504}
|
||||
SAFE_ECHO = {
|
||||
b"Content-Type",
|
||||
b"Cache-Control",
|
||||
b"Expires",
|
||||
b"Last-Modified",
|
||||
@@ -0,0 +1,14 @@
|
||||
services:
|
||||
proxy:
|
||||
build: ./app
|
||||
container_name: proxy
|
||||
restart: unless-stopped
|
||||
cpus: 0.25
|
||||
mem_limit: 128m
|
||||
pids_limit: 64
|
||||
networks:
|
||||
- caddy
|
||||
|
||||
networks:
|
||||
caddy:
|
||||
external: true
|
||||
Reference in New Issue
Block a user