-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
61 lines (58 loc) · 1.41 KB
/
compose.yaml
File metadata and controls
61 lines (58 loc) · 1.41 KB
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
services:
# own telegram api server
# needed to download / upload large files
# Container link: https://github.com/aiogram/telegram-bot-api
# Info about limitations: https://core.telegram.org/bots/api#using-a-local-bot-api-server
telegram-bot-api:
image: aiogram/telegram-bot-api:latest
hostname: tgapi
environment:
- TELEGRAM_LOCAL=1
env_file:
- .env
volumes:
- ./data/telegram-bot-api:/var/lib/telegram-bot-api
ports:
- "8081:8081"
- "8082:8082" # statistics
pocketbase:
hostname: pocketbase
build:
context: ./pocketbase
dockerfile: Dockerfile
restart: unless-stopped
ports:
- 8080:8080
volumes:
- ./data/pocketbase:/pb/pb_data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/health"]
interval: 30s
timeout: 10s
retries: 5
job-manager:
build:
context: ./job-manager
dockerfile: Dockerfile
environment:
- DOCKER_BUILD=yas
env_file:
- .env
restart: unless-stopped
depends_on:
- pocketbase
- telegram-bot-api
telegram-bot:
build:
context: ./telegram-bot
dockerfile: Dockerfile
environment:
- DOCKER_BUILD=yas
env_file:
- .env
volumes:
- ./data/telegram-bot-api:/var/lib/telegram-bot-api
restart: unless-stopped
depends_on:
- pocketbase
- telegram-bot-api