forked from mithraiclabs/psyoptions-market-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (59 loc) · 1.66 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
version: "3.7"
services:
timescaledb:
image: timescale/timescaledb:2.2.0-pg13
restart: always
ports:
- 5432:5432
volumes:
- data:/var/lib/postgresql/data
environment:
POSTGRES_DB: ${PG_DATABASE}
POSTGRES_PASSWORD: ${PG_PASSWORD}
POSTGRES_USER: ${PG_USERNAME}
hasura:
image: hasura/graphql-engine:v1.3.3.cli-migrations-v2
ports:
- 8080:8080
depends_on:
- timescaledb
volumes:
- "./hasura/metadata:/hasura-metadata"
- "./hasura/migrations:/hasura-migrations"
restart: always
environment:
HASURA_GRAPHQL_CORS_DOMAIN: "*"
HASURA_GRAPHQL_DATABASE_URL: postgres://${PG_USERNAME}:${PG_PASSWORD}@timescaledb/${PG_DATABASE}
HASURA_GRAPHQL_DEV_MODE: "true"
HASURA_GRAPHQL_ENABLE_CONSOLE: "false"
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: anonymous
listener:
restart: always
build:
context: ./
dockerfile: ./listener/Dockerfile
depends_on:
- hasura
volumes:
- ./marketMeta.json:/app/marketMeta.json
environment:
LISTENER_LOG_LEVEL: debug
GRAPHQL_URL: ${GRAPHQL_URL}
RPC_URL: ${RPC_URL}
WS_ENDPOINT: ${WS_ENDPOINT}
SOLANA_CLUSTER: devnet
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
# dashboard:
# restart: always
# ports:
# - 80:80
# build:
# context: ./
# dockerfile: ./dashboard/Dockerfile
# args:
# GRAPHQL_URL: ${GRAPHQL_URL}
# EXT_HOST: ${EXT_HOST}
volumes:
data: