-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
94 lines (93 loc) · 4.13 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
94
version: "2"
services:
processor:
build:
context: https://github.com/Coinversable/validana-processor.git#v2.2.0
dockerfile: Processor.Dockerfile
args:
NODEVERSION: 16
restart: unless-stopped
environment:
VPROC_DBHOST: database
# For example use the following site or commands: https://coinversable.github.io/validana-client/key.html
# docker build -t validana_proc https://raw.githubusercontent.com/Coinversable/validana-processor/master/Processor.Dockerfile
# docker run -it --entrypoint /usr/local/bin/yarn validana_proc --silent keysjson
VPROC_PRIVATEKEY:
# Should be the same as database PROCESSORPASS below.
VPROC_DBPASSWORD:
# Should be the same as SIGNPREFIX below. (For example pick the name of your application.)
VPROC_SIGNPREFIX:
node:
build:
context: https://github.com/Coinversable/validana-node.git#v2.2.0
dockerfile: Node.Dockerfile
args:
NODEVERSION: 16
restart: unless-stopped
environment:
VNODE_ISPROCESSOR: 'true'
VNODE_DBHOST: database
VNODE_DBUSER: backend
VNODE_DBNAME: blockchain
# If you want to use this enter a random length 64 hex string. Provide it to nodes that you want to be able to join.
VNODE_ENCRYPTIONKEY:
# Make sure it is the same as prefix above.
VNODE_SIGNPREFIX:
# Should be the same as database BACKENDPASS below.
VNODE_DBPASSWORD:
# If you want to copy the key/cert files into the container download the Dockerfile and edit it manually.
# If you want to reference files outside the container (e.g. the ./certificates folder) uncomment the volume below.
VNODE_TLS: 'false'
VNODE_KEYPATH: '/usr/node/certificates/mycert.key'
VNODE_CERTPATH: '/usr/node/certificates/mycert.cert'
#volumes:
#- ./certificates:/usr/node/certificates
ports:
# Change the left value to the port you want to expose it on, the right value is used internally.
- "29473:29473" # Port used for incomming p2p connections.
- "56789:56789" # Port used to be found by nodes, use this as VNODE_PROCESSORPORT for nodes.
database:
build:
context: https://github.com/Coinversable/validana-processor.git#v2.2.0
dockerfile: DB.Dockerfile
args:
POSTGRESVERSION: 14
# The processorpass is to be used the the processor only.
# Changing this afterwards requires removing the docker volume (containing all data!) or manually connecting to postgres and updating the password.
PROCESSORPASS:
# The backend pass can be used for any application wishing to integrate.
# Changing this afterwards requires removing the docker volume (containing all data!) or manually connecting to postgres and updating the password.
BACKENDPASS:
restart: unless-stopped
environment:
# The superuser should only be used for maintenance, backups, etc, never edit the data directly as nodes will refuse the changes!
POSTGRES_PASSWORD:
volumes:
- blockchain:/var/lib/postgresql/data
# If you wish to connect to the database from outside use the 'ports:' syntax that the node and server use.
expose:
- "5432"
server:
build:
# The server you wish to use.
context: https://github.com/Coinversable/validana-server.git#v2.2.0
dockerfile: Dockerfile
args:
NODEVERSION: 16
restart: unless-stopped
environment:
VSERVER_DBHOST: database
# Should be the same as database BACKENDPASS above.
VSERVER_DBPASSWORD:
# If you want to copy the key/cert files into the container download the Dockerfile and edit it manually.
# If you want to reference files outside the container (e.g. the ./certificates folder) uncomment the volume below.
VSERVER_TLS: 'false'
VSERVER_KEYPATH: '/usr/node/certificates/mycert.key'
VSERVER_CERTPATH: '/usr/node/certificates/mycert.cert'
#volumes:
#- ./certificates:/usr/node/certificates
ports:
# Change the left value to the port you want to expose it on, the right value is used internally.
- "8080:8080"
volumes:
blockchain: