forked from eoscostarica/eos-rate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
84 lines (78 loc) · 2 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
version: "3.5"
services:
postgres:
container_name: eosrate_postgres
image: postgres:10.4
volumes:
- eosrate-postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
DB_NAME: eosrate
DB_USER: user
DB_PASSWORD: pass
POSTGRES_DB: eosrate
pgweb:
container_name: eosrate_pgweb
image: sosedoff/pgweb:latest
restart: always
ports:
- "8082:8081"
environment:
DATABASE_URL: postgres://user:pass@postgres:5432/eosrate?sslmode=disable
depends_on:
- postgres
demux:
container_name: eosrate_demux
build:
context: ./services/demux
dockerfile: ./Dockerfile
image: eosrate/demux
volumes:
- ./services/demux:/opt/application # mount demux service folder
- /opt/application/node_modules # prevents host/container conflicts
depends_on:
- postgres
- hasura
environment:
DB_USER: user
DB_PASSWORD: pass
DB_PORT: 5432
DB_NAME: eosrate
DB_HOST: postgres
DB_SCHEMA: public
EOS_API_ENDPOINT: "https://eos.greymass.com:443"
CHAIN_HOST: "http://eosio:8888"
CHAIN_INIT_BLOCK: 10
MONGO_URI: "mongodb://190.10.8.205:27017"
MONGO_DB: EOS
WAIT_HOSTS: postgres:5432, hasura:8080
WAIT_HOSTS_TIMEOUT: 60
ports:
- "3030:3030"
networks:
default:
hasura:
container_name: eosrate_hasura
image: hasura/graphql-engine:v1.0.0-alpha41.cli-migrations
ports:
- "8088:8080"
depends_on:
- postgres
restart: always
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://user:pass@postgres:5432/eosrate?sslmode=disable
HASURA_GRAPHQL_MIGRATIONS_DIR: /hasura-migrations
volumes:
- ./services/hasura/migrations:/hasura-migrations # mount hasura migrations folder
command:
- graphql-engine
- serve
- --enable-console
volumes:
eosrate-postgres:
networks:
default:
name: eosrate