diff --git a/.env b/.env index 26778ea..36887a9 100644 --- a/.env +++ b/.env @@ -17,6 +17,7 @@ API_VERSION=2.0.31 API_NETWORK=testnet API_MODE=onetoone API_CONF_VOLUME=${PWD}/config/api-config +API_PORT=8081 API_CACHE_ENABLED=0 API_LOGS_JSONIFY=0 diff --git a/docker-compose.yml b/docker-compose.yml index 6f2f17f..ac5cbf1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -49,7 +49,7 @@ services: TON_API_GET_METHODS_ENABLED: ${API_GET_METHODS_ENABLED} TON_API_JSON_RPC_ENABLED: ${API_JSON_RPC_ENABLED} TON_API_ROOT_PATH: ${API_ROOT_PATH} - command: -c "gunicorn -k uvicorn.workers.UvicornWorker -w 1 --bind 0.0.0.0:8081 pyTON.main:app" + command: -c "gunicorn -k uvicorn.workers.UvicornWorker -w 1 --bind 0.0.0.0:${API_PORT} pyTON.main:app" networks: ton-network: ipv4_address: 172.18.0.3 @@ -59,4 +59,4 @@ networks: driver: bridge ipam: config: - - subnet: 172.18.0.0/24 \ No newline at end of file + - subnet: 172.18.0.0/24