-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
121 lines (113 loc) · 2.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
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
114
115
116
117
118
119
120
121
version: '2'
services:
# PostgreSQL Database
db:
image: postgres:10-alpine
restart: always
environment:
- POSTGRES_USER=gw_user
- POSTGRES_PASSWORD=gw_pass
- POSTGRES_DB=gateway
ports:
- '5432:5432'
# Redis
redis:
image: redis:4-alpine
restart: always
hostname: redis
ports:
- '6379:6379'
# RabbitMQ
rabbit:
hostname: rabbit
image: rabbitmq:3-alpine
restart: always
environment:
- RABBITMQ_DEFAULT_USER=admin
- RABBITMQ_DEFAULT_PASS=mypass
ports:
- "5672:5672" # we forward this port because it's useful for debugging
- "15672:15672" # here, we can access rabbitmq management plugin
# Nginx
nginx:
image: nginx:1.13-alpine
restart: always
ports:
- "8000:8000"
volumes:
- ./config/nginx.conf:/etc/nginx/conf.d/gateway.conf
volumes_from:
- web
depends_on:
- web
# Django Web Server
web:
build: .
command: uwsgi /usr/src/app/config/uwsgi.ini
restart: always
environment:
- DASHD_URL=dashd://rpcuser:rpcpassword@dashd:9998 # Comment to use Dash test net.
#- DASHD_URL=dashd://rpcuser:rpcpassword@dashd:19998 # Uncomment to use Dash test net.
- DATABASE_URL=postgres://gw_user:gw_pass@db/gateway
- REDIS_URL=redis://redis:6379/0
- RIPPLED_URL=http://rippled:51235
depends_on:
- db
- dashd
- rippled
- rabbit
- worker
expose:
- '8000'
volumes:
- .:/usr/src/app:Z
# Celery Worker
worker:
build: .
command: make worker
restart: always
environment:
- DASHD_URL=dashd://rpcuser:rpcpassword@dashd:9998 # Comment to use Dash test net.
#- DASHD_URL=dashd://rpcuser:rpcpassword@dashd:19998 # Uncomment to use Dash test net.
- DATABASE_URL=postgres://gw_user:gw_pass@db/gateway
- REDIS_URL=redis://redis:6379/0
- RIPPLED_URL=http://rippled:51235
volumes:
- .:/usr/src/app:Z
depends_on:
- db
- dashd
- rippled
- rabbit
- redis
# Dashd
dashd:
image: dashpay/dashd
restart: always
environment:
#- TESTNET=1 # Uncomment to use Dash test net.
- DISABLEWALLET=0
- RPCUSER=rpcuser
- RPCPASSWORD=rpcpassword
ports:
- '9998:9998'
- '19998:19998'
volumes:
- dashd-data:/dash
rippled:
image: gatehub/rippled
restart: always
ports:
- '51235:51235'
volumes:
- ./config/rippled.cfg:/etc/rippled.cfg # Comment to use Ripple test net.
#- ./config/rippled-testnet.cfg:/etc/rippled.cfg # Uncomment to use Ripple test net.
- rippled-data:/data
command: --conf /etc/rippled.cfg
volumes:
dashd-data:
external: true
rippled-data:
external: true