-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
46 lines (44 loc) · 1.06 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
version: '3.3'
services:
postgres:
image: postgres:12
ports:
- "5432:5432"
restart: always
volumes:
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: postgrespassword
ethstats:
image: ethstats-backend:latest
command: [
"server"
]
ports:
- "8000:8000"
depends_on:
- "postgres"
environment:
PERSIST_DAYS : 5
COLLECTOR_SECRET : "hello"
restart: always
graphql-engine:
image: hasura/graphql-engine:v2.1.1.cli-migrations-v3
ports:
- "8080:8080"
depends_on:
- "ethstats"
restart: always
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/postgres
HASURA_GRAPHQL_ENABLE_CONSOLE: 'true' # set to "false" to disable console
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
frontend:
image: ethstats-frontend:latest
ports:
- "3000:3000"
depends_on:
- "graphql-engine"
restart: always
volumes:
db_data: