generated from bomzheg/simple_structure
-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
50 lines (44 loc) · 1.05 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: '3.2'
services:
template_bot:
container_name: template_bot
restart: always
image: bomzheg/aiogram_template
volumes:
- type: "bind"
source: "${HOME}/TemplateBot/log"
target: "/log"
- type: "bind"
source: "./config"
target: "/config"
env_file: config/.env
entrypoint: [ "python3", "-m", "app"]
networks:
- reverse-proxy
- botapi
extra_hosts:
- "host.docker.internal:host-gateway"
telegram-bot-api:
image: aiogram/telegram-bot-api:latest
environment:
TELEGRAM_API_ID: "6"
TELEGRAM_API_HASH: "eb06d4abfb49dc3eeb1aeb98ae0f581e"
TELEGRAM_LOCAL: 1
volumes:
- telegram-bot-api-data:/var/lib/telegram-bot-api
networks:
- botapi
nginx:
image: nginx:latest
volumes:
- telegram-bot-api-data:/usr/share/nginx/html/var/lib/telegram-bot-api:ro
environment:
- NGINX_PORT=80
networks:
- botapi
volumes:
telegram-bot-api-data:
networks:
reverse-proxy:
external:
name: nginx-revers-proxy