fix sh
This commit is contained in:
parent
3aa15b6c7e
commit
8b68b0f1e3
14
start.sh
14
start.sh
|
|
@ -671,9 +671,15 @@ RUN mkdir -p /app/storage /app/logs
|
||||||
# Права доступа
|
# Права доступа
|
||||||
RUN chmod +x /app/app/main.py
|
RUN chmod +x /app/app/main.py
|
||||||
|
|
||||||
|
# Переменные окружения для корректного запуска
|
||||||
|
ENV UVICORN_HOST=0.0.0.0
|
||||||
|
ENV UVICORN_PORT=15100
|
||||||
|
ENV API_HOST=0.0.0.0
|
||||||
|
ENV API_PORT=15100
|
||||||
|
|
||||||
EXPOSE 15100
|
EXPOSE 15100
|
||||||
|
|
||||||
CMD ["python", "-m", "app.main"]
|
CMD ["python", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "15100"]
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Создание requirements.txt
|
# Создание requirements.txt
|
||||||
|
|
@ -709,6 +715,7 @@ jinja2==3.1.2
|
||||||
starlette==0.27.0
|
starlette==0.27.0
|
||||||
structlog==23.2.0
|
structlog==23.2.0
|
||||||
aiogram==3.3.0
|
aiogram==3.3.0
|
||||||
|
sanic==23.12.1
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Создание init_db.sql
|
# Создание init_db.sql
|
||||||
|
|
@ -1390,6 +1397,10 @@ STORAGE_PATH=$STORAGE_DIR
|
||||||
# API Configuration
|
# API Configuration
|
||||||
API_HOST=0.0.0.0
|
API_HOST=0.0.0.0
|
||||||
API_PORT=15100
|
API_PORT=15100
|
||||||
|
UVICORN_HOST=0.0.0.0
|
||||||
|
UVICORN_PORT=15100
|
||||||
|
FASTAPI_HOST=0.0.0.0
|
||||||
|
FASTAPI_PORT=15100
|
||||||
|
|
||||||
# Docker Configuration
|
# Docker Configuration
|
||||||
DOCKER_SOCK_PATH=$DOCKER_SOCK_PATH
|
DOCKER_SOCK_PATH=$DOCKER_SOCK_PATH
|
||||||
|
|
@ -1421,6 +1432,7 @@ EOF
|
||||||
"created_at": "$(date -u +%Y-%m-%dT%H:%M:%SZ)",
|
"created_at": "$(date -u +%Y-%m-%dT%H:%M:%SZ)",
|
||||||
"bootstrap_nodes": [
|
"bootstrap_nodes": [
|
||||||
{
|
{
|
||||||
|
"id": "$NODE_ID",
|
||||||
"node_id": "$NODE_ID",
|
"node_id": "$NODE_ID",
|
||||||
"address": "$(curl -s ifconfig.me || echo 'localhost')",
|
"address": "$(curl -s ifconfig.me || echo 'localhost')",
|
||||||
"port": 15100,
|
"port": 15100,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue