forked from headsrooms/historedge-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
81 lines (81 loc) · 1.96 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: "3.7"
services:
api:
volumes:
- ./:/app
depends_on:
- redis
- db
env_file:
- .env
build: .
image: headsrooms/historedge:latest
ports:
- 80:80
command: /usr/local/poetry/bin/poetry run uvicorn historedge_backend.api.app:app --reload --workers $API_WORKERS --port 80 --host 0.0.0.0
realtime_logger:
volumes:
- ./:/app
depends_on:
- redis
- api
- db
env_file:
- .env
image: headsrooms/historedge:latest
command: /usr/local/poetry/bin/poetry run python -m historedge_backend.realtime_logger.service
history_distributor:
volumes:
- ./:/app
depends_on:
- redis
- api
- db
env_file:
- .env
image: headsrooms/historedge:latest
command: /usr/local/poetry/bin/poetry run python -m historedge_backend.history_distributor.service
history_ingester:
volumes:
- ./:/app
depends_on:
- redis
- api
- db
env_file:
- .env
image: headsrooms/historedge:latest
command: /usr/local/poetry/bin/poetry run python -m historedge_backend.history_ingester.service
scraper_distributor:
volumes:
- ./:/app
depends_on:
- redis
- db
env_file:
- .env
image: headsrooms/historedge:latest
command: /usr/local/poetry/bin/poetry run python -m historedge_backend.scraper_distributor.service
scraper:
volumes:
- ./:/app
depends_on:
- redis
- db
- scraper_distributor
env_file:
- .env
image: headsrooms/historedge:latest
command: /usr/local/poetry/bin/poetry run python -m historedge_backend.scraper.service
redis:
image: redis:latest
db:
image: postgres:latest
env_file:
- .env
volumes:
- pgdata:/var/lib/postgresql/data/pgdata
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
pgdata: