feat(proxy): add proxy service for google oauth connection
This commit is contained in:
@@ -25,9 +25,9 @@ RUN apt-get update \
|
|||||||
|
|
||||||
COPY requirements/ /app/requirements/
|
COPY requirements/ /app/requirements/
|
||||||
|
|
||||||
RUN pip install --no-cache-dir --upgrade pip setuptools wheel \
|
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 \
|
&& 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
|
&& pip install --no-cache-dir -r requirements/prod.txt -i https://package-mirror.liara.ir/repository/pypi/simple
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,19 @@
|
|||||||
services:
|
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:
|
db:
|
||||||
image: postgres:18-alpine
|
image: postgres:18-alpine
|
||||||
restart: always
|
restart: always
|
||||||
@@ -49,6 +64,15 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
redis:
|
redis:
|
||||||
condition: service_started
|
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:
|
celery:
|
||||||
build:
|
build:
|
||||||
|
|||||||
Reference in New Issue
Block a user