forked from pointnetwork/pointnetwork
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.devnet.yaml
More file actions
82 lines (77 loc) · 2.12 KB
/
docker-compose.devnet.yaml
File metadata and controls
82 lines (77 loc) · 2.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
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
version: '3.9'
services:
postgres:
container_name: postgres
image: postgres:14.0
command: postgres -c 'max_connections=1000'
environment:
POSTGRES_DB: neon-db
POSTGRES_USER: neon-proxy
POSTGRES_PASSWORD: neon-proxy-pass
hostname: postgres
healthcheck:
test: [ CMD-SHELL, "pg_isready" ]
interval: 5s
timeout: 10s
retries: 10
start_period: 5s
expose:
- "5432"
networks:
- net
blockchain_provider:
image: neonlabsorg/proxy:v0.4.1
container_name: pointnetwork_blockchain_provider
healthcheck:
test: |
curl -X POST \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":0}' \
http://localhost:9090/solana
interval: 60s
timeout: 5s
retries: 4
start_period: 30s
depends_on:
postgres:
condition: service_healthy
environment:
POSTGRES_HOST: postgres
POSTGRES_DB: neon-db
POSTGRES_USER: neon-proxy
POSTGRES_PASSWORD: neon-proxy-pass
NEON_CLI_TIMEOUT: 60
EXTRA_ARGS: '--num-worker 1'
NEW_USER_AIRDROP_AMOUNT: 0
CONFIG: devnet
ports:
- 127.0.0.1:9090:9090
expose:
- "9090"
networks:
- net
volumes:
- $BLOCKCHAIN_KEYSTORE:/root/.config/solana
- ./scripts/handle-neon-proxy.sh:/opt/proxy/handle-run-proxy.sh:ro
entrypoint: /opt/proxy/handle-run-proxy.sh
command: ''
# contract_deployer:
# image: pointnetwork/pointnetwork_deployer:$DEPLOYER_IMAGE_VERSION
# container_name: pointnetwork_contract_deployer
# depends_on:
# blockchain_provider:
# condition: service_healthy
# restart: 'no'
# volumes:
# - ./truffle/truffle-config-neon.js:/truffle/truffle-config.js:ro
# - ./truffle/migrations:/truffle/migrations:ro
# - ./truffle/contracts:/truffle/contracts:ro
# - $DEPLOYER_KEYSTORE:/.keystore:ro
# - shared_contracts:/build:rw
# command: deploy --network $DEPLOYER_ENV
# env_file:
# - .env.deployer.devnet
volumes:
shared_contracts:
networks:
net: