forked from pointnetwork/pointnetwork
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yaml
More file actions
128 lines (117 loc) · 3.24 KB
/
docker-compose.test.yaml
File metadata and controls
128 lines (117 loc) · 3.24 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
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
version: '3.9'
services:
point_node:
build:
context: .
dockerfile: Dockerfile
image: point_node
hostname: point_node
container_name: point_node
depends_on:
contract_deployer:
condition: service_completed_successfully
buckets:
condition: service_completed_successfully
bundler:
condition: service_started
gateway:
condition: service_started
healthcheck:
test: |
curl http://127.0.0.1:2468/v1/api/status/meta
interval: 12s
timeout: 12s
retries: 4
start_period: 8s
volumes:
- point_node_data_test:/data
- shared_contracts_test:/app/hardhat/build:ro
- ../point-contracts/contracts:/app/hardhat/contracts:ro
- ./resources/blockchain-test-key.json:/data/keystore/key.json:ro
- ./resources/arweave-test-key.json:/data/keystore/arweave.json:ro
- ./resources/certs/ca.crt:/app/pointnetwork/resources/certs/ca.crt:ro
- hardhat_resources_test:/app/hardhat/resources:ro
ports:
- '8666:8666'
- '2468:2468'
environment:
NODE_CONFIG_ENV: dockertest
MODE: e2e
test:
image: point_node
container_name: test
command: run test:docker
depends_on:
point_node:
condition: service_healthy
volumes:
- test_data_test:/data
- shared_contracts_test:/app/hardhat/build:ro
- ./resources/blockchain-test-key.json:/data/keystore/key.json:ro
- ./resources/arweave-test-key.json:/data/keystore/arweave.json:ro
- ./tests:/app/tests:ro
- hardhat_resources_test:/app/hardhat/resources:ro
environment:
LOG_LEVEL: info
MODE: e2e
NODE_CONFIG_ENV: dockertest
NODE_TLS_REJECT_UNAUTHORIZED: 0
blockchain_node:
extends:
file: docker-compose.e2e.yaml
service: blockchain_node
volumes:
- blockchain_data_test:/data:rw
contract_deployer:
extends:
file: docker-compose.e2e.yaml
service: contract_deployer
volumes:
- shared_contracts_test:/build:rw
- ../point-contracts/contracts:/hardhat/contracts:ro
- ../point-contracts/scripts:/hardhat/scripts:ro
- ../point-contracts/tasks:/hardhat/tasks:ro
- ../point-contracts/hardhat.config.ts:/hardhat/hardhat.config.ts:ro
- hardhat_resources_test:/hardhat/resources:rw
arweave:
extends:
file: docker-compose.storage.yaml
service: arweave
volumes:
- arweave_data_test:/mnt/arweave-data
gateway:
extends:
file: docker-compose.storage.yaml
service: gateway
volumes:
- gateway_data_test:/app
gateway_db:
extends:
file: docker-compose.storage.yaml
service: gateway_db
volumes:
- gateway_db_data_test:/var/lib/postgresql/data
bundler:
extends:
file: docker-compose.storage.yaml
service: bundler
cache:
extends:
file: docker-compose.storage.yaml
service: cache
volumes:
- bundler_data_test:/data
buckets:
extends:
file: docker-compose.storage.yaml
service: buckets
volumes:
blockchain_data_test:
shared_contracts_test:
point_node_data_test:
test_data_test:
arweave_data_test:
gateway_data_test:
bundler_data_test:
gateway_db_data_test:
hardhat_resources_test: