-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
78 lines (70 loc) · 1.65 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
version: '3'
name: scatter-protocol-resources
services:
ipfs:
image: ipfs/kubo:latest
container_name: scatter-ipfs
volumes:
- ipfs-data:/data/ipfs
ports:
- "4001:4001"
- "5001:5001"
- "8080:8080"
requestor-postgres:
image: postgres
ports:
- "8701:5432"
environment:
POSTGRES_DB: requestor-postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- requestor-postgres-data:/var/lib/postgresql/data
trainer-postgres:
image: postgres
ports:
- "8702:5432"
environment:
POSTGRES_DB: trainer-postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- trainer-postgres-data:/var/lib/postgresql/data
validator-postgres:
image: postgres
ports:
- "8703:5432"
environment:
POSTGRES_DB: validator-postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- validator-postgres-data:/var/lib/postgresql/data
hardhat-network:
build:
context: .
dockerfile: ./core/dockerfiles/Dockerfile.hardhat
image: hardhat-network:latest
volumes:
- ./core/hardhat.config.js:/app/hardhat.config.js
- ./core/package.json:/app/package.json
- ./core/package-lock.json:/app/package-lock.json
ports:
- "8545:8545"
mongo:
image: mongo
ports:
- "27017:27017"
networks:
- scatter-web-net
volumes:
- mongodb-data:/data/db
networks:
scatter-web-net:
driver: bridge
volumes:
requestor-postgres-data:
trainer-postgres-data:
validator-postgres-data:
ipfs-data:
mongodb-data: