generated from energywebfoundation/EWFRepositoryTemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
110 lines (102 loc) · 2.58 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
version: '3'
services:
ganache:
container_name: ganache
image: 'trufflesuite/ganache-cli'
ports:
- '8545:8545'
volumes:
- ganache:/app/storage
command: [
"-m",
"candy maple cake sugar pudding cream honey rich smooth crumble sweet treat",
"--accounts",
"20",
"--networkId=9",
"--gasPrice=1",
"--gasLimit=10000000",
"--db=/app/storage"
]
ocn-node:
container_name: ocn-node
build:
context: ./docker/ocn-node
dockerfile: ./Dockerfile
ports:
- 8080:8080
depends_on:
- ocn-node-db
ocn-node-db:
image: postgres:latest
container_name: ocn-node-db
restart: always
ports:
- 5435:5432
volumes:
- ocn-node-db:/var/lib/postgresql
environment:
- POSTGRES_USERNAME=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DATABASE=postgres
- POSTGRES_PORT=5432
emsp-backend:
container_name: emsp-backend
build:
context: ./packages/emsp-backend
dockerfile: ./Dockerfile.dev
volumes:
- ./packages/emsp-backend/:/app
- /app/node_modules
ports:
- 3000:3000
- 3030:3030
depends_on:
- emsp-backend-db
environment:
- TYPEORM_CONNECTION=postgres
- TYPEORM_HOST=emsp-backend-db
- TYPEORM_USERNAME=postgres
- TYPEORM_PASSWORD=postgres
- TYPEORM_DATABASE=postgres
- TYPEORM_PORT=5432
- TYPEORM_SYNCHRONIZE=true
- TYPEORM_LOGGING=false
emsp-backend-db:
image: postgres:latest
container_name: emsp-backend-db
restart: always
ports:
- 5432:5432
volumes:
- emsp-backend-db:/var/lib/postgresql
environment:
- POSTGRES_USERNAME=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DATABASE=postgres
- POSTGRES_PORT=5432
cpo-backend:
container_name: cpo-backend
build: https://github.com/energywebfoundation/ocn-tools.git#feat/admin-api
volumes:
- cpo-backend-db:/home/node/app/data
ports:
- 3060:3060 # admin port
environment:
- OCN_NODE_URL=http://ocn-node:8080
- OCN_IDENTITY=0x737f5c61de545d32059ce6d5bc72f7d34b9963310adde62ef0f26621266b65dc
- OCN_STAGE=docker
- CPO_PORT=3000
- CPO_ADMIN_PORT=3060
- CPO_PUBLIC_IP=http://cpo-backend:3000
- CPO_PARTY_ID=CPO
- CPO_COUNTRY_CODE=DE
- CPO_NAME=MockCPO
- CPO_PREQUALIFY_ASSETS=false
- CPO_CREATE_DIDS=false
- CPO_SIGNATURES=false
command: ['node', 'dist/index.js', 'mock', '--cpo']
volumes:
ganache:
emsp-backend-db:
ocn-node-db:
cpo-backend-db: