-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
93 lines (80 loc) · 1.8 KB
/
docker-compose.yml
File metadata and controls
93 lines (80 loc) · 1.8 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
version: "3.8"
x-env: &env
ENABLE_METRICS_EXPORTER: 1
METRICS_EXPORTER_PORT: ${METRICS_EXPORTER_PORT}
REDIS_URL: redis://redis
DATABASE_URL: postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres/fireagg
BENCHMARK_TRADES_PER_SECOND_TARGET: 100
x-fireagg: &fireagg
restart: unless-stopped
environment:
<<: *env
build:
context: "."
volumes:
- ./:/app
depends_on:
- redis
- postgres
expose:
# Prometheus metrics
- ${METRICS_EXPORTER_PORT}
networks:
- metrics
- main
services:
postgres:
restart: unless-stopped
image: timescale/timescaledb-ha:pg14-latest
ports:
- "15432:5432"
environment:
POSTGRES_DB: fireagg
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- ./migrations/committed:/docker-entrypoint-initdb.d
- pgdata:/home/postgres/pgdata
networks:
- main
fireagg-app:
<<: *fireagg
entrypoint: uvicorn
ports:
- "5011:5011"
command: fireagg.app:app --reload --host 0.0.0.0 --port 5011
redis:
image: redis:7.2.0
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redisdata:/data
networks:
- main
db_insertion:
<<: *fireagg
hostname: fireagg_db_insertion
command: distributed core
# db_benchmark:
# <<: *fireagg
# command: distributed symbols seesaw/synthetic
btc_usd:
<<: *fireagg
command: distributed symbols BTC/USD BTC/USDT
# eth_usd:
# <<: *fireagg
# command: distributed symbols ETH/USD ETH/USDT
# crv_usd:
# <<: *fireagg
# command: distributed symbols CRV/USD CRV/USDT
# zrx_usd:
# <<: *fireagg
# command: distributed symbols ZRX/USD ZRX/USDT
volumes:
redisdata:
pgdata:
networks:
main:
metrics:
external: true