feat(proxy): add proxy service for google oauth connection
Some checks failed
Deployment CI/CD / validate (push) Has been cancelled
Deployment CI/CD / deploy (push) Has been cancelled

This commit is contained in:
2026-05-22 00:30:11 +03:30
parent af0ffb2293
commit 863cbd9ec9
2 changed files with 79 additions and 55 deletions

View File

@@ -25,9 +25,9 @@ RUN apt-get update \
COPY requirements/ /app/requirements/
RUN pip install --no-cache-dir --upgrade pip setuptools wheel \
&& pip install --no-cache-dir -r requirements/base.txt \
&& pip install --no-cache-dir -r requirements/prod.txt
RUN pip install --no-cache-dir --upgrade pip setuptools wheel -i https://package-mirror.liara.ir/repository/pypi/simple \
&& pip install --no-cache-dir -r requirements/base.txt -i https://package-mirror.liara.ir/repository/pypi/simple \
&& pip install --no-cache-dir -r requirements/prod.txt -i https://package-mirror.liara.ir/repository/pypi/simple
COPY . .

View File

@@ -1,4 +1,19 @@
services:
proxy:
build:
context: ../proxy
dockerfile: Dockerfile
restart: unless-stopped
expose:
- "8085"
volumes:
- ../proxy/config.json:/app/config.json:ro
- ../proxy/ca:/app/ca
environment:
PYTHONUNBUFFERED: "1"
PROXY_HOST: "0.0.0.0"
PROXY_PORT: "8085"
db:
image: postgres:18-alpine
restart: always
@@ -49,6 +64,15 @@ services:
condition: service_healthy
redis:
condition: service_started
proxy:
condition: service_started
environment:
HTTP_PROXY: "http://proxy:8085"
HTTPS_PROXY: "http://proxy:8085"
http_proxy: "http://proxy:8085"
https_proxy: "http://proxy:8085"
NO_PROXY: "localhost,127.0.0.1,db,redis,proxy"
no_proxy: "localhost,127.0.0.1,db,redis,proxy"
celery:
build: