-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (44 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
46 lines (44 loc) · 1.12 KB
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
version: '3.8'
services:
hardhat:
build:
context: .
dockerfile: Dockerfile
container_name: hardhat-node
ports:
- "8545:8545"
volumes:
- ./contracts:/app/contracts
- ./scripts:/app/scripts
- ./test:/app/test
- ./hardhat.config.ts:/app/hardhat.config.ts
- ./artifacts:/app/artifacts
- ./cache:/app/cache
- ./typechain-types:/app/typechain-types
environment:
- REPORT_GAS=true
command: npx hardhat node --hostname 0.0.0.0
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:8545"]
interval: 10s
timeout: 5s
retries: 5
# Service for running tests
test:
build:
context: .
dockerfile: Dockerfile
container_name: hardhat-test
volumes:
- ./contracts:/app/contracts
- ./scripts:/app/scripts
- ./test:/app/test
- ./hardhat.config.ts:/app/hardhat.config.ts
- ./artifacts:/app/artifacts
- ./cache:/app/cache
- ./typechain-types:/app/typechain-types
environment:
- REPORT_GAS=true
command: npx hardhat test
profiles:
- test