forked from GaloyMoney/dealer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
126 lines (126 loc) · 3 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
version: '2.1'
networks:
monitoring:
driver: bridge
volumes:
prometheus_data: {}
grafana_data: {}
services:
otel-agent:
image: otel/opentelemetry-collector-contrib:0.43.0
command: ["--config=/etc/otel-agent-config.yaml"]
environment:
- HONEYCOMB_DATASET=${HONEYCOMB_DATASET}
- HONEYCOMB_API_KEY=${HONEYCOMB_API_KEY}
volumes:
- ./dev/otel-agent-config.yaml:/etc/otel-agent-config.yaml
prometheus:
image: prom/prometheus:v2.29.1
container_name: prometheus
volumes:
- ./prometheus:/etc/prometheus
- prometheus_data:/prometheus
ports:
- 9090:9090
expose:
- 9090
environment:
- LOGS_ENABLED=false
networks:
- monitoring
grafana:
image: grafana/grafana:8.1.1
container_name: grafana
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning
environment:
- GF_AUTH_DISABLE_LOGIN_FORM=true
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
- LOGS_ENABLED=false
ports:
- 3000:3000
expose:
- 3000
networks:
- monitoring
galoy-dealer:
build:
context: .
dockerfile: dealer/Dockerfile
depends_on:
postgres:
condition: service_healthy
extra_hosts:
- "host.docker.internal:host-gateway"
links:
- postgres
- graphql
ports:
- 3333:3333
- 50055:50055
expose:
- 3333
- 50055
networks:
- monitoring
environment:
# HEDGING_NOT_IN_SIMULATION: ${HEDGING_NOT_IN_SIMULATION}
NETWORK: ${NETWORK}
LOG_LEVEL: ${LOG_LEVEL}
#
ACTIVE_STRATEGY: ${ACTIVE_STRATEGY}
ACTIVE_WALLET: ${ACTIVE_WALLET}
#
OKEX5_KEY: ${OKEX5_KEY}
OKEX5_SECRET: ${OKEX5_SECRET}
OKEX5_PASSWORD: ${OKEX5_PASSWORD}
OKEX5_FUND_PASSWORD: ${OKEX5_FUND_PASSWORD}
#
GRAPHQL_URI: ${GRAPHQL_URI}
DATABASE_URL: ${DATABASE_URL}
JAEGER_HOST: ${JAEGER_HOST}
#
DEALER_PHONE: ${DEALER_PHONE}
DEALER_CODE: ${DEALER_CODE}
DEALER_TOKEN: ${DEALER_TOKEN}
#
DEALER_BTC_BAL_OFFSET: ${DEALER_BTC_BAL_OFFSET}
DEALER_USD_BAL_OFFSET: ${DEALER_USD_BAL_OFFSET}
graphql:
build:
context: .
dockerfile: dealer/src/servers/graphql/Dockerfile
extra_hosts:
- "host.docker.internal:host-gateway"
links:
- postgres
ports:
- 4000:4000
expose:
- 4000
networks:
- monitoring
environment:
DATABASE_URL: ${DATABASE_URL}
JAEGER_HOST: ${JAEGER_HOST}
postgres:
container_name: postgres
image: postgres:13.4
ports:
- "5432:5432"
networks:
- monitoring
volumes:
- ../postgresdata:/var/lib/postgresql/data
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: galoy
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5