generated from MarshalX/bluesky-feed-generator
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
69 lines (63 loc) · 1.33 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
version: '3.9'
services:
api:
build: .
container_name: sky-feeder-api
volumes:
- .:/app
env_file:
- .env
environment:
- ENABLE_DATA_STREAM=false
- DATABASE_URL=${DATABASE_URL}
ports:
- "${PORT}:${PORT}"
depends_on:
- postgres-db
command: ["api"]
data-stream:
build: .
container_name: sky-feeder-data-stream
volumes:
- .:/app
env_file:
- .env
environment:
- ENABLE_DATA_STREAM=true
- DATABASE_URL=${DATABASE_URL}
depends_on:
- postgres-db
command: ["data-stream"]
postgres-db:
image: ankane/pgvector:latest
container_name: sky-feeder-db
env_file:
- .env
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- "5432:5432"
redis:
image: redis:alpine
container_name: sky-feeder-redis
ports:
- "6379:6379"
algo-matcher-worker:
build: .
# container_name: sky-feeder-algo-matcher
environment:
- REDIS_URL=redis://redis:6379/0
- DATABASE_URL=${DATABASE_URL}
volumes:
- .:/app
command: ["algo-matcher-worker"]
depends_on:
- redis
deploy:
replicas: 10
volumes:
postgres-data: