-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (47 loc) 路 952 Bytes
/
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
version: '3.7'
services:
redis:
build:
context: buildfiles
dockerfile: RedisDockerfile
env_file:
- .env
restart: on-failure
ports:
- "6379:6379"
db:
image: postgres:15-alpine
env_file:
- .env
volumes:
- pgdata:/var/lib/postgresql/data
restart: on-failure
ports:
- "5432:5432"
bot:
build:
context: .
dockerfile: buildfiles/Dockerfile
command: /bin/bash -c "source venv/bin/activate && make migrate && python -m src.bot"
env_file:
- .env
restart: always
ports:
- "8080:8080"
depends_on:
- db
- redis
scheduler:
build:
context: .
dockerfile: buildfiles/Scheduler.Dockerfile
env_file:
- .env
restart: always
command: /bin/bash -c "source venv/bin/activate && arq src.scheduler.main.WorkerSettings"
depends_on:
- redis
- bot
volumes:
pgdata:
pgadmin-data: