-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
56 lines (53 loc) · 1.5 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
version: '2'
services:
mongo:
container_name: receipt-mongo
image: mongo:4.1
restart: unless-stopped
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_LOGIN}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_SECRET}
volumes:
- ${MONGO_DATA}:/data/db
- ${MONGO_BACKUP}:/backup
networks:
- collector-net
collector:
container_name: receipt-collector
build: backend
image: drypa/receipt-collector:latest
restart: always
depends_on:
- mongo
environment:
- MONGO_URL=mongodb://mongo:27017
- MONGO_LOGIN=${MONGO_LOGIN}
- MONGO_SECRET=${MONGO_SECRET}
- CLIENT_SECRET=${CLIENT_SECRET}
- TEMPLATES_PATH=/usr/share/receipts/templates
- GET_RECEIPT_WORKER_INTERVAL=15m
- NALOGRU_BASE_ADDR=https://irkkt-mobile.nalog.ru:8888
networks:
- collector-net
volumes:
- "${SSL_CERTS_PATH}:/usr/share/receipts/ssl/certs/"
- "${RAW_TICKET_DUMP_PATH}:/var/lib/receipts/raw/"
- "${GET_TICKET_ERROR_PATH}:/var/lib/receipts/error/"
- "${TEMPLATES_PATH}:/usr/share/receipts/templates"
bot:
container_name: receipt-bot
build: bot
image: drypa/receipt-telegram-bot:latest
restart: unless-stopped
depends_on:
- mongo
environment:
- BOT_TOKEN=${BOT_TOKEN}
- BACKEND_GRPC_ADDR=collector:15000
- REPORTS_GRPC_ADDR=collector:15001
networks:
- collector-net
volumes:
- "${SSL_CERTS_PATH}:/usr/share/receipts/ssl/certs/"
networks:
collector-net: