-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
74 lines (73 loc) · 2.88 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
version: "2"
services:
node:
build:
context: https://github.com/Coinversable/validana-node.git#v2.2.0
dockerfile: Node.Dockerfile
args:
NODEVERSION: 16
restart: unless-stopped
environment:
VNODE_DBHOST: database
# The processor should have these values for you.
VNODE_ENCRYPTIONKEY:
VNODE_PUBLICKEY:
VNODE_PROCESSORHOST:
VNODE_PROCESSORPORT: 443
VNODE_TLS: 'true'
# Should be the same as database NODEPASS below.
VNODE_DBPASSWORD:
# Should be the same as database NETWORKPASS below.
VNODE_DBPASSWORD_NETWORK:
VNODE_LISTENPORT: 29473
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.
database:
build:
context: https://github.com/Coinversable/validana-node.git#v2.2.0
dockerfile: DB.Dockerfile
args:
# Use the same version as the processor uses
POSTGRESVERSION: 14
# The nodepass and networkpass are to be used by the node only.
# Changing this afterwards requires removing the docker volume (containing all data!) or manually connecting to postgres and updating the password.
NODEPASS:
NETWORKPASS:
# 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!
POSTGRES_PASSWORD:
volumes:
- blockchain_node:/var/lib/postgresql/data
# If you wish to connect to the database from outside use 'ports:' like the node and server use.
expose:
- "5432"
server:
build:
# The server you wish to use.
context: https://github.com/Coinversable/validana-server.git#v2.1.1
dockerfile: Dockerfile
args:
NODEVERSION: 16
restart: unless-stopped
environment:
VSERVER_DBNAME: blockchain_node
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_node: