-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
79 lines (72 loc) · 1.84 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
version: '3.5'
services:
postgres:
image: postgres:10.4
volumes:
- dapp-postgres-data-volume:/var/lib/postgresql/data
ports:
- '5432:5432'
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
DB_NAME: eosgreetings
DB_USER: user
DB_PASSWORD: pass
POSTGRES_DB: eosgreetings
pgweb:
image: sosedoff/pgweb:latest
restart: always
ports:
- "8082:8081"
environment:
DATABASE_URL: postgres://user:pass@postgres:5432/eosgreetings?sslmode=disable
depends_on:
- postgres
demux:
build:
context: ./services/demux
dockerfile: ./Dockerfile
args:
SERVICE: 'demux'
image: eosgreetings/demux
volumes:
- ./services/demux:/opt/application # mount demux service folder
- /opt/application/node_modules # prevents host/container conflicts
depends_on:
- postgres
environment:
DB_USER: user
DB_PASSWORD: pass
DB_PORT: 5432
DB_NAME: eosgreetings
DB_HOST: postgres
DB_SCHEMA: public
CHAIN_HOST: 'http://eosio:8888'
CHAIN_INIT_BLOCK: 10
MONGO_URI: "mongodb://190.10.8.205:27017"
MONGO_DB: EOS
WAIT_HOSTS: postgres:5432
WAIT_HOSTS_TIMEOUT: 60
ports:
- '3030:3030'
hasura:
image: hasura/graphql-engine:v1.0.0-alpha37.cli-migrations
ports:
- '8088:8080'
depends_on:
- postgres
restart: always
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://user:pass@postgres:5432/eosgreetings?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:
dapp-postgres-data-volume:
networks:
default:
name: eosgreetings