forked from dlc-markets/pythia
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
61 lines (52 loc) · 1.22 KB
/
compose.yml
File metadata and controls
61 lines (52 loc) · 1.22 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
x-defaults: &defaults
restart: unless-stopped
networks:
- network
environment: &environment
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: pythia
POSTGRES_HOST: postgres
logging:
driver: 'json-file'
options:
max-size: '5m'
max-file: '10'
tag: '{{.Name}}'
name: oracle
networks:
network:
volumes:
postgres:
services:
postgres:
<<: *defaults
image: postgres:16.6-alpine
volumes:
- postgres:/var/lib/postgresql
ports:
- 5432:5432
healthcheck:
test: ["CMD", "nc", "-zv", "localhost", "5432"]
interval: 10s
timeout: 5s
retries: 5
start_period: 15s
pythia:
<<: *defaults
build:
context: .
dockerfile: packages/pythia/Dockerfile
environment:
<<: *environment
RUST_LOG: info
PYTHIA_SECRET_KEY: d0a26c65de0b4b853432c3931ee280f67b9c52de33e1b3aecb04edc1ec40ef4a
command: >
pythia
--pair '{"pricefeed":"lnmarkets","assetPair":"btc_usd","eventDescriptor":{"base":2,"isSigned":false,"unit":"usd/btc","precision":0,"nbDigits":20}}'
--schedule '0 */1 * * * * *'
--offset '2min'
ports:
- 8000:8000
depends_on:
- postgres