qwe
BOT_open_sesam/pipeline/head There was a failure building this commit
Details
BOT_open_sesam/pipeline/head There was a failure building this commit
Details
parent
dda0e8ebb7
commit
be996f942b
|
|
@ -8,8 +8,17 @@ services:
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env
|
- ./.env
|
||||||
restart: always
|
restart: always
|
||||||
|
networks:
|
||||||
|
- open_sesam_network
|
||||||
logging:
|
logging:
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
options:
|
options:
|
||||||
max-size: "10m"
|
max-size: "10m"
|
||||||
max-file: "3"
|
max-file: "3"
|
||||||
|
networks:
|
||||||
|
open_sesam_network:
|
||||||
|
driver: bridge
|
||||||
|
ipam:
|
||||||
|
config:
|
||||||
|
- subnet: 172.30.10.0/30
|
||||||
|
gateway: 172.30.10.1
|
||||||
3
main.py
3
main.py
|
|
@ -18,7 +18,8 @@ BOT_TOKEN=os.environ.get('BOT_TOKEN')
|
||||||
dp = Dispatcher()
|
dp = Dispatcher()
|
||||||
register_all_handlers(dp)
|
register_all_handlers(dp)
|
||||||
|
|
||||||
PROXY_URL = "socks5://172.30.10.1:1080"
|
PROXY_URL = os.environ.get('PROXY_URL')
|
||||||
|
|
||||||
session = AiohttpSession(proxy=PROXY_URL)
|
session = AiohttpSession(proxy=PROXY_URL)
|
||||||
|
|
||||||
async def main() -> None:
|
async def main() -> None:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue