-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
executable file
·152 lines (143 loc) · 4.32 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
version: "3.3"
services:
zcashd:
build:
context: zcashd/
volumes:
- type: $zcash_volume_type
source: $zcash_volume_source
target: /root/.zcash
environment:
- "CRYPTO_USER=${cryptocurrency_rpc_username}"
- "CRYPTO_PASS=${cryptocurrency_rpc_password}"
- "CRYPTO_PORT=${cryptocurrency_rpc_port}"
- "TEST_MODE=${docker_zcash_node_test_mode}"
mongo:
image: mongo:4.0.4-xenial
volumes:
- type: $mongo_volume_type
source: $mongo_volume_source
target: /data/db
environment:
- "AUTH=yes"
- "MONGO_INITDB_ROOT_USERNAME=${mongo_admin_username}"
- "MONGO_INITDB_ROOT_PASSWORD=${mongo_admin_password}"
- "MONGO_INITDB_DATABASE=${cryptocurrency}"
mongo-express:
image: mongo-express
depends_on:
- mongo
ports:
- 127.0.0.1:8001:8081
environment:
- "ME_CONFIG_MONGODB_ADMINUSERNAME=${mongo_admin_username}"
- "ME_CONFIG_MONGODB_ADMINPASSWORD=${mongo_admin_password}"
- "ME_CONFIG_MONGODB_SERVER=mongo"
- "ME_CONFIG_MONGODB_AUTH_DATABASE=${cryptocurrency}"
block-engine:
image: bergplace/block-engine:1.03
depends_on:
- mongo
environment:
- "MONGODB_ADMIN_USER=${mongo_admin_username}"
- "MONGODB_ADMIN_PASS=${mongo_admin_password}"
- "MONGODB_READONLY_USER=${mongo_readonly_username}"
- "MONGODB_READONLY_PASS=${mongo_readonly_password}"
- "MONGODB_HOST=mongo"
- "MONGODB_PORT=27017"
- "CRYPTO=${cryptocurrency}"
- "CRYPTO_USER=${cryptocurrency_rpc_username}"
- "CRYPTO_PASS=${cryptocurrency_rpc_password}"
- "CRYPTO_PORT=${cryptocurrency_rpc_port}"
- "CRYPTO_HOST=${cryptocurrency_host}"
- "TX_ADDRESS_CACHE_LIMIT=${tx_address_cache_limit}"
postgres:
image: postgres:11
volumes:
- type: $postgres_volume_type
source: $postgres_volume_source
target: /var/lib/postgresql/data
environment:
- "POSTGRES_HOST_AUTH_METHOD=trust"
rabbit:
image: rabbitmq:3.7-management
hostname: dru-rabbit
volumes:
- type: $rabbit_volume_type
source: $rabbit_volume_source
target: /var/lib/rabbitmq
ports:
- 127.0.0.1:8002:15672
celery:
build:
context: web/
image: django
volumes:
- ./web/src:/app
- type: $task_results_volume_type
source: $task_results_volume_source
target: /task-results
depends_on:
- postgres
- rabbit
- mongo
environment:
- "MONGODB_READONLY_USER=${mongo_readonly_username}"
- "MONGODB_READONLY_PASS=${mongo_readonly_password}"
- "MONGODB_HOST=mongo"
- "MONGODB_NAME=${cryptocurrency}"
- "DJANGO_SU_NAME=${web_admin_username}"
- "DJANGO_SU_PASSWORD=${web_admin_password}"
- "DEBUG=${debug}"
- "WEB_HOST=${web_host}"
- "WEB_PORT=${web_port}"
- "TYPE=celery"
- "SENDGRID_USERNAME=${sendgrid_username}"
- "SENDGRID_PASSWORD=${sendgrid_password}"
- "EMAIL_ADDRESS=${email_address}"
- "EMAIL_REPLY_TO_ADDRESS=${email_reply_to_address}"
web:
image: django
volumes:
- ./web/src:/app
- type: $task_results_volume_type
source: $task_results_volume_source
target: /task-results
- type: bind
source: "${web_ssl_key_path}"
target: /etc/ssl/private/server.key
- type: bind
source: "${web_ssl_cert_path}"
target: /etc/ssl/certs/server.pem
depends_on:
- postgres
- rabbit
- mongo
- celery
environment:
- "MONGODB_READONLY_USER=${mongo_readonly_username}"
- "MONGODB_READONLY_PASS=${mongo_readonly_password}"
- "MONGODB_HOST=mongo"
- "MONGODB_NAME=${cryptocurrency}"
- "DJANGO_SU_NAME=${web_admin_username}"
- "DJANGO_SU_PASSWORD=${web_admin_password}"
- "DEBUG=${debug}"
- "WEB_HOST=${web_host}"
- "WEB_PORT=${web_port}"
- "HTTPS=${web_enable_ssl}"
- "TYPE=django"
- "SENDGRID_USERNAME=${sendgrid_username}"
- "SENDGRID_PASSWORD=${sendgrid_password}"
- "EMAIL_ADDRESS=${email_address}"
- "EMAIL_REPLY_TO_ADDRESS=${email_reply_to_address}"
ports:
- ${web_port}:80
- 443:443
tty: true
stdin_open: true
volumes:
tmp-vol-task_results:
tmp-vol-mongo:
tmp-vol-postgres:
tmp-vol-zcash:
tmp-vol-rabbit: