-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
89 lines (86 loc) · 1.99 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
version: "3"
services:
raiden1:
build:
context: ./raiden-node
dockerfile: Dockerfile
# image: raiden
container_name: raiden1
# restart: unless-stopped
# env_file: .env
# environment:
# - MONGO_USERNAME=$MONGO_USERNAME
# - MONGO_PASSWORD=$MONGO_PASSWORD
# - MONGO_HOSTNAME=db
# - MONGO_PORT=$MONGO_PORT
# - MONGO_DB=$MONGO_DB
ports:
- "5001:5001"
volumes:
- raiden1Data:/root/.raiden
# - node_modules:/home/node/app/node_modules
networks:
- app-network
command: make start
raiden2:
build:
context: ./raiden-node
dockerfile: Dockerfile
# image: raiden
container_name: raiden2
restart: unless-stopped
# env_file: .env
environment:
- ETH_ADDRESS=0xc788F08a2aAf539111e2a2D85BD4B324FBE37B15
ports:
- "5002:5001"
volumes:
- raiden2Data:/root/.raiden
# - node_modules:/home/node/app/node_modules
networks:
- app-network
command: make start
# nodejs-be:
# build:
# context: .
# dockerfile: Dockerfile
# image: nodejs-be
# container_name: nodejs-be
# restart: unless-stopped
# env_file: .env
# environment:
# - MONGO_USERNAME=$MONGO_USERNAME
# - MONGO_PASSWORD=$MONGO_PASSWORD
# - MONGO_HOSTNAME=db
# - MONGO_PORT=$MONGO_PORT
# - MONGO_DB=$MONGO_DB
# ports:
# - "5000:5000"
# volumes:
# - .:/home/node/app
# # - node_modules:/home/node/app/node_modules
# networks:
# - app-network
# command: make start-in-docker
db:
image: mongo:4.2.1
container_name: db
restart: unless-stopped
env_file: .env
environment:
- MONGO_INITDB_ROOT_USERNAME=$MONGO_USERNAME
- MONGO_INITDB_ROOT_PASSWORD=$MONGO_PASSWORD
ports:
- "27017:27017"
# volumes:
# - dbdata:/data/db
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
dbdata:
node_modules:
raiden1Data:
raiden2Data: