-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcanis-major.yml
65 lines (59 loc) · 1.72 KB
/
canis-major.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
version: '3.5'
services:
canismajor:
build:
context: https://github.com/FIWARE-Blockchain/CanisMajor.git
container_name: fiware-canismajor
hostname: canismajor
depends_on:
- mysql-db
ports:
- '4000:4000'
networks:
default:
ipv4_address: 172.18.1.5
environment:
- NODE_ENV=development
- CM_PORT=4000
- DB_HOST=mysql-db
- DB_NAME=cm
- DB_USERNAME=root
- DB_PASSWORD=secret
- DLT_TYPE=eth
- RPC_ENDPOINT=http://46.17.108.87:8545
- DEFAULT_GAS=3000000
- AEI_CONTRACT_MODE=true
- CONTRACT_ADDRESS=0x9a3DBCa554e9f6b9257aAa24010DA8377C57c17e
- STORAGE_TYPE=ipfs
- IPFS_HOST=ipfs.infura.io
- IPFS_PORT=5001
- IPFS_PROTOCOL=https
- IOTAMAM_HOST=https://nodes.devnet.iota.org
- IOTAMAM_MODE=public
mysql-db:
restart: always
image: mysql:5.7
hostname: mysql-db
container_name: db-mysql
expose:
- '3306'
ports:
- '3306:3306'
networks:
default:
ipv4_address: 172.18.1.6
environment:
# Development use only
# Use Docker Secrets for Sensitive Data
- 'MYSQL_ROOT_PASSWORD=secret'
- "MYSQL_ROOT_HOST=172.18.1.5" # Allow Keyrock to access this database
volumes:
- mysql-db:/var/lib/mysql
- ./dump.sql:/docker-entrypoint-initdb.d/dump.sql
networks:
default:
ipam:
config:
- subnet: 172.18.1.0/24
volumes:
mysql-db: ~