-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (59 loc) · 1.61 KB
/
Copy pathdocker-compose.yml
File metadata and controls
62 lines (59 loc) · 1.61 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
x-logging: &default-logging
options:
max-size: '12m'
max-file: '5'
driver: json-file
services:
bitcoind:
image: bitcoin/bitcoin:29.1
command: -regtest=1 -rpcport=${BITCOIND_RPC_PORT} -rpcuser=${BITCOIND_RPC_USER} -rpcpassword=${BITCOIND_RPC_PASSWORD} -rpcallowip=0.0.0.0/0 -rpcbind=0.0.0.0
ports:
- "${BITCOIND_RPC_PORT}:18443"
expose:
- "${BITCOIND_RPC_PORT}"
profiles:
- bitcoind
bitvmx-client:
build:
context: ./
dockerfile: docker/Dockerfile
ssh:
- default
logging: *default-logging
restart: unless-stopped
entrypoint: [ "./run.sh" ]
environment:
BITCOIND_URL: ${BITCOIND_URL}
CLIENT_OP: ${CLIENT_OP}
BITCOIND_RPC_USER: ${BITCOIND_RPC_USER}
BITCOIND_RPC_PASSWORD: ${BITCOIND_RPC_PASSWORD}
healthcheck:
test: [ "CMD-SHELL", "pgrep -f bitvmx-client" ] # Check bitvmx-client proccess is running
interval: 2s
timeout: 5s
retries: 5
start_period: 5s
ports:
- "${BROKER_PORT}:${BROKER_PORT}"
expose:
- "${BROKER_PORT}"
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
- ./config:/app/rust-bitvmx-workspace/rust-bitvmx-client/config
- ./volumes/tmp:/tmp
bitvmx-emulator:
build:
context: ./
dockerfile: docker/Dockerfile.emulator
ssh:
- default
logging: *default-logging
restart: unless-stopped
entrypoint: [ "./run_emulator.sh" ]
environment:
CLIENT_OP: ${CLIENT_OP}
network_mode: "service:bitvmx-client"
depends_on:
bitvmx-client:
condition: service_healthy