-
Notifications
You must be signed in to change notification settings - Fork 14
/
dc-without-vpn.yml
73 lines (73 loc) · 1.95 KB
/
dc-without-vpn.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
version: "2.13.0"
services:
postgres:
image: postgres:15.2-alpine
ports:
- "5454:5432"
volumes:
- type: bind
source: ${STORAGE_PATH}/postgres-data
target: /var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: '${POSTGRES_PASSWORD}'
logging:
driver: "json-file"
options:
max-size: "5m"
restart: unless-stopped
telegram-api:
platform: linux/x86_64
image: aiogram/telegram-bot-api
environment:
TELEGRAM_STAT: ${TELEGRAM_STAT}
TELEGRAM_API_ID: ${TELEGRAM_API_ID}
TELEGRAM_API_HASH: ${TELEGRAM_API_HASH}
volumes:
- type: bind
source: ${STORAGE_PATH}/telegram-bot-api-data
target: /var/lib/telegram-bot-api
ports:
- "127.0.0.1:8093:8081"
- "127.0.0.1:8094:8082"
logging:
driver: "json-file"
options:
max-size: "5m"
restart: always
purr-purr:
platform: linux/x86_64
build:
context: .
dockerfile: ./Dockerfile
cpu_count: 8
mem_limit: "8000M"
depends_on:
- telegram-api
- postgres
#runtime: nvidia
environment:
TZ: "Europe/Moscow"
POSTGRES_CONNECT: host=postgres user=postgres password=${POSTGRES_PASSWORD} sslmode=disable
NVIDIA_VISIBLE_DEVICES: "all"
NVIDIA_DRIVER_CAPABILITIES: "compute,utility,video"
DEV: ${DEV}
BOT_DEBUG: ${BOT_DEBUG}
BOT_TOKEN: ${BOT_TOKEN}
CHAT_ID_CHANNEL_LOG: ${CHAT_ID_CHANNEL_LOG}
DIR_BOT: "/bot-data"
DOWNLOAD_LIMIT: ${DOWNLOAD_LIMIT}
TG_API_ENDPOINT: telegram-api:8081
TG_PATH_LOCAL: "/telegram-bot-api-data"
WELCOME_VIDEO_ID: ${WELCOME_VIDEO_ID}
volumes:
- type: bind
source: ${STORAGE_PATH}/bot-data
target: /bot-data
- type: bind
source: ${STORAGE_PATH}/telegram-bot-api-data
target: /telegram-bot-api-data
logging:
driver: "json-file"
options:
max-size: "5m"
restart: unless-stopped