-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yaml
50 lines (46 loc) · 1.01 KB
/
docker-compose.yaml
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
services:
db:
env_file: .env
image: timescale/timescaledb:latest-pg14
ports:
- 127.0.0.1:${DB_PORT}:5432
volumes:
- data:/var/lib/postgresql/data
candles-server:
env_file: .env
build:
context: ./candles-server
dockerfile: Dockerfile
depends_on:
- "db"
- "candles-worker"
entrypoint:
- "/usr/local/bin/candles-server"
- "/etc/markets/markets.json"
- ${POSTGRES_USER}
- ${POSTGRES_PASSWORD}
- ${HOST}
- ${DB_PORT}
- ${DB_NAME}
ports:
- 127.0.0.1:8080:8080
restart: always
volumes:
- ./markets.json:/etc/markets/markets.json
candles-worker:
env_file: .env
build:
context: ./candles-worker
dockerfile: Dockerfile
depends_on:
- "db"
restart: always
entrypoint:
- "/usr/local/bin/candles-worker"
- "/etc/markets/markets.json"
- ${RPC_URL}
- ${REFRESH_PERIOD}
volumes:
- ./markets.json:/etc/markets/markets.json
volumes:
data: