-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
93 lines (89 loc) · 3.32 KB
/
docker-compose.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
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
version: '3.0'
services:
karbo-node:
env_file: .env
container_name: karbo-node
ports:
- "$BIND_ADDRESS4:32347:32347"
- "$BIND_ADDRESS4:32348:32348"
# Uncomment only if you're know what you're doing
# - "$BIND_ADDRESS6:32347:32347"
# - "$BIND_ADDRESS6:32348:32348"
## experimental features
##cpu_count: '$CPU_ALLOC'
##mem_limit: $MEM_ALLOC
#########################
restart: always
image: "karbovanets/karbo-cli:$VERSION"
volumes:
- "$BLOCKCHAIN_PATH:/home/karbo/.karbowanec"
command:
- "--fee-address=$FEE_ADDRESS"
- "--fee-amount=$FEE_AMOUNT"
- "--contact=$NODE_OWNER"
#- "--log-file=/home/karbo/.karbowanec/node.log" # Uncomment to enable logging
networks:
- karbo-int-network
karbo-simplewallet:
env_file: .env
container_name: karbo-simplewallet
# replace "expose" with "ports" if you want to bind to external IP, but it may be dangerous for security reasons, better to use some reverse proxy with restricted access
expose:
- $WALLET_RPC_PORT
restart: always
image: "karbovanets/karbo-cli:$VERSION"
volumes:
- "$WALLET_PATH:/home/karbo/wallets"
entrypoint:
- simplewallet
# #### Usual parameter set for general purposes operation ####
- --wallet-file=/home/karbo/wallets/$WALLET_FILENAME
- --password=$WALLET_PASS # comment this if wallet isn't encrypted with password
- --rpc-bind-port=$WALLET_RPC_PORT
- --rpc-bind-ip=0.0.0.0
- --daemon-host=karbo-node # local service as default, you can replace it with remote one
- --daemon-port=32348
# - --log-file=/home/karbo/wallets/simplewallet.log # Uncomment to enable logging
# - --reset # uncomment and run once to resync wallet file from zero
# #### Parameter set for creating new wallet with .env specified parameters ####
# --daemon-host=karbo-node
# - --generate-new-wallet=/home/karbo/wallets/$WALLET_FILENAME
# - --password=$WALLET_PASS
# - --log-file=/home/karbo/wallets/your-new-wallet.log
networks:
- karbo-int-network
# karbo-walletd:
# env_file: .env_file
# container_name: karbo-walletd
# ports:
# - "$BIND_ADDRESS4:0:0"
# #- "$BIND_ADDRESS6:0:0"
# restart: always
# image: "karbovanets/karbo-cli:$VERSION"
# volumes:
# - "$BLOCKCHAIN_PATH:/home/karbo/.karbowanec"
# - "$WALLET_PATH:/home/karbo/wallets"
# entrypoint:
# networks:
# - karbo-int-network
# karbo-greenwallet:
# env_file: .env_file
# container_name: karbo-greenwallet
# ports:
# - "$BIND_ADDRESS4:0:0"
# - "$BIND_ADDRESS6:0:0"
# restart: always
# image: "karbovanets/karbo-cli:$VERSION"
# volumes:
# - "$WALLET_PATH:/home/karbo/wallets"
# entrypoint:
# - greenwallet
# - --remote-daemon=karbo-node
# - --wallet-file=/home/karbo/wallets/$WALLET_FILENAME
# - --password=$WALLET_PASS # comment this if wallet isn't encrypted with password
# - --log-file=/home/karbo/wallets/greenwallet.log # Uncomment to enable logging
# networks:
# - karbo-int-network
networks:
karbo-int-network:
driver: bridge