-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-ci-test.yml
60 lines (55 loc) · 1.21 KB
/
docker-compose-ci-test.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: "3.3"
services:
db:
container_name: db
image: postgres
ports:
- "5432:5432"
env_file:
- "./test.env"
restart: always
redis:
container_name: redis
image: "redis:alpine"
volumes:
- ./storage/redis/data:/data
restart: always
tgbot:
container_name: tgbot
build:
context: .
dockerfile: Dockerfile
cache_from:
- docker.pkg.github.com/pip-install-hse/destreambot/tg_bot:latest
image: docker.pkg.github.com/pip-install-hse/destreambot/tg_bot:latest
working_dir: "/code/tg_bot"
depends_on:
- db
env_file:
- "./test.env"
volumes:
- .:/code/tg_bot
command: python start_tg_bot.py
restart: always
celery:
container_name: celery
build: .
working_dir: "/code/tg_bot"
command: celery -A adminka worker -l info
env_file:
- "./test.env"
volumes:
- .:/code/tg_bot
depends_on:
- redis
celery-beat:
container_name: celery-beat
build: .
working_dir: "/code/tg_bot"
command: sh -c "rm -rf celerybeat.pid && celery -A adminka beat -l info"
env_file:
- "./test.env"
volumes:
- .:/code/tg_bot
depends_on:
- redis