forked from eth-educators/eth-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
web3signer.yml
65 lines (62 loc) · 1.75 KB
/
web3signer.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.9"
x-logging: &logging
logging:
driver: json-file
options:
max-size: 100m
max-file: "3"
tag: '{{.ImageName}}|{{.Name}}|{{.ImageFullID}}|{{.FullID}}'
services:
web3signer:
restart: "unless-stopped"
build:
context: ./web3signer
args:
- DOCKER_TAG=${W3S_DOCKER_TAG:-latest}
- DOCKER_REPO=${W3S_DOCKER_REPO:-consensys/web3signer}
dockerfile: Dockerfile.binary
image: web3signer:local
user: web3signer
volumes:
- web3signer-keys:/var/lib/web3signer
- /etc/localtime:/etc/localtime:ro
depends_on:
postgres:
condition: service_healthy
<<: *logging
entrypoint:
- docker-entrypoint.sh
- /opt/web3signer/bin/web3signer
- --key-store-path=/var/lib/web3signer/keys
- --metrics-enabled
- --metrics-host-allowlist=*
- --http-host-allowlist=*
- eth2
- --network=${NETWORK}
- --enable-key-manager-api=true
- --slashing-protection-db-url=jdbc:postgresql://postgres/web3signer
- --slashing-protection-db-username=postgres
- --slashing-protection-db-password=postgres
- --slashing-protection-pruning-enabled=true
labels:
- metrics.scrape=true
- metrics.path=/metrics
- metrics.port=9001
- metrics.instance=web3signer
postgres:
restart: "unless-stopped"
image: "postgres:${PG_DOCKER_TAG}"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=web3signer
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
start_period: 5s
interval: 10s
timeout: 5s
volumes:
- web3signer-slashing-data:/var/lib/postgresql/data/
volumes:
web3signer-keys:
web3signer-slashing-data: