-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathdocker-compose.yml
113 lines (105 loc) · 2.55 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
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
version: '3.5'
services:
postgres:
image: postgres:10.4
volumes:
- ./.dbdata/.pgsql-data:/var/lib/postgresql/data
ports:
- '5432:5432'
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: pass
DB_NAME: monstereosio
DB_USER: user
DB_PASSWORD: pass
POSTGRES_DB: monstereosio
networks:
monstereos:
mongo:
image: mongo
restart: always
volumes:
- ./.dbdata/.mongo-data:/data/db
ports:
- '27017:27017'
networks:
monstereos:
fullnode:
image: eosio/eos:v1.2.4
build:
context: ./services/eos-node
dockerfile: Dockerfile
image: monstereos/fullnode
stop_grace_period: 3m0s
ports:
- '8840:8888'
- '9840:9876'
environment:
WAIT_HOSTS: mongo:27017, eosiodev:8888
WAIT_HOSTS_TIMEOUT: 60
DATA_DIR: /opt/eosio/bin/data-dir
depends_on:
- mongo
- eosiodev
volumes:
- 'fullnode:/opt/eosio/bin/data-dir'
- './services/eos-node/config-full-node.ini:/opt/eosio/bin/data-dir/config.ini'
# - './services/eos-node/config-main-node.ini:/opt/eosio/bin/data-dir/config.ini'
# - './services/eos-node/mainnet-genesis.json:/opt/eosio/bin/genesis.json'
networks:
monstereos:
# only required for dev
eosiodev:
build:
context: ./services/eos-dev
dockerfile: Dockerfile
image: monstereos/eosiodev
stop_grace_period: 3m0s
ports:
- '8888:8888'
- '9830:9876'
environment:
DATA_DIR: /root/.local/share
CONFIG_DIR: /opt/application/config
volumes:
- eosiodevapp:/root/.local/share
- ./services/eos-dev:/opt/application
networks:
monstereos:
demux:
build:
context: ./services/demux
dockerfile: ./Dockerfile
args:
SERVICE: 'demux'
image: monstereos/demux
volumes:
- ./services/demux:/opt/application # mount demux service folder
- /opt/application/node_modules # prevents host/container conflicts
depends_on:
- mongo
- postgres
- eosiodev
environment:
DB_USER: user
DB_PASSWORD: pass
DB_PORT: 5432
DB_NAME: monstereosio
DB_HOST: postgres
DB_SCHEMA: pets
CHAIN_HOST: 'http://eosiodev:8888'
CHAIN_INIT_BLOCK: 10
MONGO_URI: 'mongodb://mongo:27017'
MONGO_DB: EOSFN
WAIT_HOSTS: postgres:5432, mongo:27017
WAIT_HOSTS_TIMEOUT: 60
ports:
- '3030:3030'
networks:
monstereos:
volumes:
eosiodevapp:
fullnode:
networks:
monstereos:
name: monstereos