-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
66 lines (64 loc) · 1.52 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
61
62
63
64
65
66
version: '3.3'
services:
bot:
depends_on:
- db
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
volumes:
- ./src:/app/src
- ./assets:/app/downloads
ports:
- 8080:80
environment:
WEBHOOK_HOST: "https://58e0-146-158-18-165.ngrok.io"
REDIS_URL: "redis://redis:6379"
BOT_TOKEN: 1416252712:AAF7sZtj9NH7N3XjIB_nxvQDEMuVS38PQSQ
DATABASE_URL: "mysql+pymysql://bot:password@db:3306/bot"
ADMINS_ID: 1
db:
image: mysql
ports:
- 3030:3306
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: bot
MYSQL_USER: bot
MYSQL_PASSWORD: password
volumes:
- db_data:/var/lib/mysql
redis:
image: redis
volumes:
- redis:/data
rq-worker:
depends_on:
- db
- redis
build:
context: .
dockerfile: Dockerfile
working_dir: /app
command: rq worker high default --with-scheduler --path 'src'
restart: unless-stopped
volumes:
- ./src:/app/src
- ./assets:/app/downloads
environment:
REDIS_URL: "redis://redis:6379"
BOT_TOKEN: BOT_TOKEN
DATABASE_URL: "mysql+pymysql://bot:password@db:3306/bot"
ADMINS_ID: 1
rq-dashboard:
image: eoranged/rq-dashboard
ports:
- 9181:9181
environment:
RQ_DASHBOARD_PASSWORD: admin
RQ_DASHBOARD_REDIS_URL: redis://redis:6379
RQ_DASHBOARD_USERNAME: admin
volumes:
db_data:
redis: