-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose.yml
60 lines (53 loc) · 1.79 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
51
52
53
54
55
56
57
58
59
60
version: "2"
volumes:
server-data:
driver: local
services:
feed-master:
build:
context: .
dockerfile: Dockerfile
args:
- SKIP_TEST
image: umputun/feed-master:master
container_name: feed-master
hostname: feed-master
restart: always
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
environment:
- DEBUG=false
- FM_DB=/srv/var/feed-master.bdb
- FM_CONF=/srv/etc/fm.yml
- TELEGRAM_TOKEN
# Uncomment the line below if you want to enable Telegram
# with file upload limit raised from default 50Mb to 2000Mb
# - TELEGRAM_SERVER=http://telegram-bot-api:8081
volumes:
- ./var:/srv/var # mapped location to save status
- ./_example/etc:/srv/etc # mapped location for config
- ./_example/images:/srv/images # mapped location for images
ports:
- "8097:8080" # exposed on port 8097
# This service is optional.
# It could be accessed by port 8081 as local Telegram Bot API server.
telegram-bot-api:
image: ghcr.io/bots-house/docker-telegram-bot-api:latest
container_name: telegram-bot-api
hostname: telegram-bot-api
command: "--dir=/var/lib/telegram-bot-api"
volumes:
- server-data:/var/lib/telegram-bot-api
restart: unless-stopped
logging:
driver: json-file
options:
max-size: "10m"
max-file: "5"
environment:
# get these values from https://core.telegram.org/api/obtaining_api_id
- TELEGRAM_API_ID
- TELEGRAM_API_HASH