-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
87 lines (80 loc) · 1.57 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
version: '3'
services:
omni_api:
build:
context: api
dockerfile: Dockerfile
depends_on:
- omni_postgres
- omni_core
- omni_engine
- omni_redis
links:
- omni_postgres
- omni_core
- omni_redis
ports:
- "4005:80"
omni_explorer:
build:
context: explorer
dockerfile: Dockerfile
depends_on:
- omni_api
links:
- omni_api
ports:
- "4006:3000"
omni_engine:
build:
context: engine
dockerfile: Dockerfile
depends_on:
- omni_postgres
- omni_core
- omni_redis
links:
- omni_postgres
- omni_core
- omni_redis
environment:
FLYWAY_PLACEHOLDERS_OMNIAPIPASSWORD: omniapipass
FLYWAY_PLACEHOLDERS_OMNIENGINEPASSWORD: omnienginepass
PGUSER: postgres
PGPASSWORD: postgresspass
PGHOST: omni_postgres
PGPORT: 5432
OMNIDB_DATABASE: omni
NETWORK: testnet
omni_core:
build:
context: core
dockerfile: Dockerfile
volumes:
- omnicore:/root/.bitcoin
ports:
- "18532:18332"
command: >
-server
-testnet
-txindex
-rpcuser=username
-rpcpassword=password
-rpcallowip=172.0.0.0/8
-rpcport=18332
omni_postgres:
image: postgres:alpine
restart: always
ports:
- "5436:5432"
volumes:
- pgdata:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: postgresspass
POSTGRES_DB: omni
omni_redis:
image: redis:alpine
restart: always
volumes:
pgdata:
omnicore: