44 lines
976 B
YAML
44 lines
976 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
ihm_client:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.4nk-node
|
|
container_name: 4nk-ihm-client
|
|
ports:
|
|
- "8080:80"
|
|
- "3003:3003"
|
|
environment:
|
|
- SDK_RELAY_WS_URL=ws://sdk_relay_1:8090
|
|
- SDK_RELAY_HTTP_URL=http://sdk_relay_1:8091
|
|
- BITCOIN_RPC_URL=http://bitcoin:18443
|
|
- BLINDBIT_URL=http://blindbit:8000
|
|
- NODE_ENV=production
|
|
volumes:
|
|
- ihm_client_logs:/var/log/nginx
|
|
- ihm_client_data:/usr/share/nginx/html/data
|
|
networks:
|
|
- btcnet
|
|
depends_on:
|
|
- sdk_relay_1
|
|
- sdk_relay_2
|
|
- sdk_relay_3
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--quiet", "--tries=1", "--timeout=5", "--spider", "http://localhost"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 40s
|
|
|
|
volumes:
|
|
ihm_client_logs:
|
|
driver: local
|
|
ihm_client_data:
|
|
driver: local
|
|
|
|
networks:
|
|
btcnet:
|
|
external: true
|