-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yaml
56 lines (50 loc) · 1.07 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
---
version: "2.4"
x-first-run:
# For the first run replace migrate_db with init_db
init_db:
image: "sevoid/cryptopotato-bot:latest"
restart: "no"
command: [ "init_db" ]
environment:
- DB_URL=sqlite:////data/db.sqlite
- ALEMBIC_CFG=/opt/bot/alembic.ini
volumes:
- data:/data
networks:
- cryptopotato
services:
migrate_db:
image: "sevoid/cryptopotato-bot:latest"
restart: "no"
command: [ "migrate_db" ]
environment:
- DB_URL=sqlite:////data/db.sqlite
volumes:
- data:/data
networks:
- cryptopotato
telegram_bot:
image: "sevoid/cryptopotato-bot:latest"
restart: always
environment:
- WAIT_BEFORE_START=5
- DB_URL=sqlite:////data/db.sqlite
- BOT_TOKEN=
- DEVELOPER_IDS=
- DAILY_TITLES_JOB_ENABLED=
- DAILY_TITLES_JOB_TIME=
- BOT_TIMEZONE=
volumes:
- data:/data
networks:
- cryptopotato
depends_on:
- migrate_db
volumes:
data:
name: data
driver: local
networks:
cryptopotato:
name: cryptopotato