-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 1.15 KB
/
docker-compose.yml
File metadata and controls
48 lines (45 loc) · 1.15 KB
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
version: "3"
services:
mongodb:
image: mongo:4.2
command: mongod --smallfiles --logpath=/dev/null
expose:
- 27017
environment:
MONGO_INITDB_DATABASE: blockchain
api:
build: .
container_name: api
restart: always
command: ["gunicorn", "-w", "3", "--bind", "0.0.0.0:5000", "--access-logfile", "-", "api:app"]
depends_on:
- mongodb
expose:
- 5000
ports:
- 5000:5000
environment:
RPC_HOST: <host of elcash node rpc api>
RPC_USER: <user of elcash node rpc api>
RPC_PASSWORD: <password of elcash node rpc api>
DB_URL: <mongodb url>
DB_NAME: <mongodb database name>
DB_PORT: <mongodb port>
volumes:
- "./src:/app"
daemon:
build: .
container_name: daemon
restart: always
command: [ "python3", "daemon.py" ]
depends_on:
- mongodb
environment:
RPC_HOST: <host of elcash node rpc api>
RPC_USER: <user of elcash node rpc api>
RPC_PASSWORD: <password of elcash node rpc api>
DB_URL: <mongodb url>
DB_NAME: <mongodb database name>
DB_PORT: <mongodb port>
volumes:
- "./src:/app"