-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose.yml
135 lines (117 loc) · 3.15 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
version: '3.9'
services:
cas_api:
build: .
environment:
- NODE_ENV=dev
- APP_MODE=server
- APP_PORT=8081
- USE_SMART_CONTRACT_ANCHORS=true
- ANCHOR_CONTROLLER_ENABLED=false
- ANCHOR_EXPIRATION_PERIOD=0
- ANCHOR_SCHEDULE_EXPRESSION=0/1 * * * ? *
- BLOCKCHAIN_CONNECTOR=ethereum
- CERAMIC_API_URL=http://host.docker.internal:7007
- ETH_GAS_LIMIT=4712388
- ETH_GAS_PRICE=100000000000
- ETH_NETWORK=goerli
- ETH_OVERRIDE_GAS_CONFIG=false
- ETH_WALLET_PK=0x16dd0990d19001c50eeea6d32e8fdeef40d3945962caf18c18c3930baa5a6ec9
- ETH_CONTRACT_ADDRESS=0xD3f84Cf6Be3DD0EB16dC89c972f7a27B441A39f2
- IPFS_API_URL=http://ipfs:5001
- IPFS_API_TIMEOUT=10000
- LOG_LEVEL=debug
- LOG_TO_FILES=true
- LOG_PATH=/usr/local/var/log
- MERKLE_DEPTH_LIMIT=0
- DB_NAME=anchor_db
- DB_HOST=database
- DB_PORT=5432
- DB_USERNAME=root
- DB_PASSWORD=root
- VALIDATE_RECORDS=false
volumes:
- '/usr/local/var/log:/usr/local/var/log'
depends_on:
- ipfs
- database
ports:
- '8081:8081'
networks:
- internal
cas_anchor:
build: .
restart: unless-stopped
environment:
- NODE_ENV=dev
- APP_MODE=anchor
- APP_PORT=8081
- USE_SMART_CONTRACT_ANCHORS=true
- ANCHOR_CONTROLLER_ENABLED=false
- ANCHOR_EXPIRATION_PERIOD=0
- ANCHOR_SCHEDULE_EXPRESSION=0/1 * * * ? *
- BLOCKCHAIN_CONNECTOR=ethereum
- CERAMIC_API_URL=http://host.docker.internal:7007
- ETH_GAS_LIMIT=4712388
- ETH_GAS_PRICE=100000000000
- ETH_NETWORK=goerli
- ETH_OVERRIDE_GAS_CONFIG=false
- ETH_WALLET_PK=0x16dd0990d19001c50eeea6d32e8fdeef40d3945962caf18c18c3930baa5a6ec9
- ETH_CONTRACT_ADDRESS=0xD3f84Cf6Be3DD0EB16dC89c972f7a27B441A39f2
- IPFS_API_URL=http://ipfs:5001
- IPFS_API_TIMEOUT=10000
- LOG_LEVEL=debug
- LOG_TO_FILES=true
- LOG_PATH=/usr/local/var/log
- MERKLE_DEPTH_LIMIT=0
- DB_NAME=anchor_db
- DB_HOST=database
- DB_PORT=5432
- DB_USERNAME=root
- DB_PASSWORD=root
- VALIDATE_RECORDS=false
volumes:
- '/usr/local/var/log:/usr/local/var/log'
depends_on:
- ipfs
- database
- cas_api
networks:
- internal
ipfs:
image: ipfs/kubo
command:
- "daemon"
- "--enable-pubsub-experiment"
volumes:
- './export:/export'
- './data/ipfs:/data/ipfs'
ports:
- '5001:5001'
- '4001:4001'
- '8080:8080'
networks:
- internal
database:
image: 'postgres'
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- POSTGRES_DB=anchor_db
ports:
- '5432:5432'
volumes:
- ./data/postgres:/var/lib/postgresql/data/
networks:
- internal
ganache:
image: trufflesuite/ganache
ports:
- '8545:8545'
command:
- "--mnemonic='move sense much taxi wave hurry recall stairs thank brother nut woman' --networkId=5777 --hostname=0.0.0.0 -l=80000000"
networks:
- internal
networks:
internal:
driver: bridge