-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdelete-me-docker-compose.yml
More file actions
178 lines (169 loc) · 4.03 KB
/
Copy pathdelete-me-docker-compose.yml
File metadata and controls
178 lines (169 loc) · 4.03 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
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
version: "3.9"
services:
xq-engine-pegasys:
build: xq-engine
restart: unless-stopped
volumes:
- alembic-versions:/app/xq-engine/alembic/versions
environment:
DEX: PEGASYS
API_URL: http://172.31.8.221:8545
DB_HOST: ${DB_HOST}
DB_PORT: 5432
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
DB_DATABASE: ${DB_DATABASE}
DB_SCHEMA: "xgraph_psys"
REDIS_HOST: ${REDIS_HOST}
REDIS_DATABASE: 1
XQ_NUM_WORKERS: ${XQ_NUM_WORKERS}
NUM_SAFETY_BLOCKS: 5
TARGET_SLEEP_TIME: 60
ALEMBIC_SLEEP: 0
HASURA_IP: 172.32.8.166
stop_signal: SIGINT
stop_grace_period: 10s
depends_on:
- xq-pg
logging:
driver: "json-file"
options:
max-size: "2m"
max-file: "10"
networks:
xqbackend:
ipv4_address: 172.32.7.166
exrproxy-env_backend:
xq-engine-pangolin:
build: xq-engine
restart: unless-stopped
volumes:
- alembic-versions:/app/xq-engine/alembic/versions
environment:
DEX: PANGOLIN
API_URL: http://194.163.143.68:9650/ext/bc/C/rpc
DB_HOST: ${DB_HOST}
DB_PORT: 5432
DB_USERNAME: ${DB_USERNAME}
DB_PASSWORD: ${DB_PASSWORD}
DB_DATABASE: ${DB_DATABASE}
DB_SCHEMA: "xgraph_png"
REDIS_HOST: ${REDIS_HOST}
REDIS_DATABASE: 0
XQ_NUM_WORKERS: ${XQ_NUM_WORKERS}
NUM_SAFETY_BLOCKS: 10
TARGET_SLEEP_TIME: 30
ALEMBIC_SLEEP: 5
HASURA_IP: 172.32.8.166
stop_signal: SIGINT
stop_grace_period: 10s
depends_on:
- xq-pg
logging:
driver: "json-file"
options:
max-size: "2m"
max-file: "10"
networks:
xqbackend:
ipv4_address: 172.32.6.166
# hasura
xq-graphql:
image: hasura/graphql-engine:v2.15.0
restart: unless-stopped
tty: true
ports:
- "8080:8080"
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://${DB_USERNAME}:${DB_PASSWORD}@172.32.8.167:5432/${DB_DATABASE}
HASURA_GRAPHQL_STRINGIFY_NUMERIC_TYPES: "true"
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
HASURA_GRAPHQL_DEV_MODE: "true"
stop_signal: SIGINT
stop_grace_period: 10s
depends_on:
- xq-pg
logging:
driver: "json-file"
options:
max-size: "2m"
max-file: "10"
networks:
xqbackend:
ipv4_address: 172.32.8.166
# postgres
xq-pg:
image: postgres:15.0
shm_size: 1g
restart: unless-stopped
volumes:
- /xq2:/var/lib/postgresql/data
tty: true
# ports:
# - "5432:5432"
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_DB: ${DB_DATABASE}
stop_signal: SIGINT
stop_grace_period: 10s
logging:
driver: "json-file"
options:
max-size: "2m"
max-file: "10"
networks:
xqbackend:
ipv4_address: 172.32.8.167
# redis
xq-redis:
image: redis:7.0
restart: unless-stopped
tty: true
# ports:
# - "6379:6379"
command: redis-server --save 20 1 --loglevel warning --requirepass "${REDIS_PASSWORD}"
stop_signal: SIGINT
stop_grace_period: 10s
logging:
driver: "json-file"
options:
max-size: "2m"
max-file: "10"
networks:
xqbackend:
ipv4_address: 172.32.8.168
xq-reverse-proxy:
build: xq-reverse-proxy
restart: always
environment:
PORT: 81
ENDPOINT: /indexer
HASURA_IP: 172.32.8.166
HASURA_PORT: 8080
depends_on:
- xq-graphql
- xq-pg
logging:
driver: "json-file"
options:
max-size: "2m"
max-file: "10"
networks:
xqbackend:
ipv4_address: 172.32.8.169
networks:
xqbackend:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.32.0.0/20
driver_opts:
com.docker.network.bridge.enable_icc: "true"
com.docker.network.bridge.enable_ip_masquerade: "true"
exrproxy-env_backend:
name: exrproxy-env_backend
external: true
volumes:
alembic-versions: