-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
77 lines (72 loc) · 1.51 KB
/
docker-compose.yaml
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
74
75
76
77
services:
redis:
image: redis/redis-stack:latest
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 10
ports:
- 6379:6379
- 8001:8001
restart: unless-stopped
volumes:
- redis:/data
networks:
- app-network
bin:
build:
context: .
dockerfile: docker/bin.Dockerfile
platforms:
- linux/amd64
ports:
- 9001:9001
depends_on:
redis:
condition: service_healthy
links:
- redis
environment:
AUTH_TOKEN: ${AUTH_TOKEN}
BASE_RECHECK_TIME: ${BIN_BASE_RECHECK_TIME}
BOT_TOKEN: ${TELEGRAM_BOT_TOKEN}
MIGRATE: 1
PARSER_REDIS_QUERY_HOST: redis
HOSTNAME: 0.0.0.0
CHROME_EXECUTABLE: /usr/bin/google-chrome
DATABASE_URL: ${BIN_DATABASE}
restart: unless-stopped
volumes:
- bin-db:/app/apps/bin/db
networks:
- app-network
telegram-bot:
build:
context: .
dockerfile: docker/telegram-bot.Dockerfile
environment:
BOT_TOKEN: ${TELEGRAM_BOT_TOKEN}
MIGRATE: 1
DATABASE_URL: ${TELEGRAM_DATABASE}
restart: unless-stopped
volumes:
- telegram-bot-db:/app/apps/telegram-bot/db
networks:
- app-network
web:
build:
context: .
dockerfile: docker/web.Dockerfile
ports:
- 8002:8002
restart: unless-stopped
networks:
- app-network
volumes:
telegram-bot-db:
bin-db:
redis:
networks:
app-network:
driver: bridge