Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Duniter v2S
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
rust
Duniter v2S
Commits
b9ae8853
Commit
b9ae8853
authored
11 months ago
by
Hugo Trentesaux
Committed by
Hugo Trentesaux
7 months ago
Browse files
Options
Downloads
Patches
Plain Diff
update docker compose examples
parent
244ce1d8
No related branches found
No related tags found
1 merge request
!270
update docker compose examples
Pipeline
#38209
waiting for manual action
Stage: quality
Stage: build
Stage: tests
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docker-compose.yml
+15
-26
15 additions, 26 deletions
docker-compose.yml
docker/compose/docker-compose.smith.yml
+37
-0
37 additions, 0 deletions
docker/compose/docker-compose.smith.yml
docker/compose/live-template.docker-compose.yml
+0
-33
0 additions, 33 deletions
docker/compose/live-template.docker-compose.yml
with
52 additions
and
59 deletions
docker-compose.yml
+
15
−
26
View file @
b9ae8853
# This is a minimal docker-compose.yml template for running a Duniter
instanc
e
# This is a minimal docker-compose.yml template for running a Duniter
mirror nod
e
# For more detailed examples, look at docker/compose folder
version
:
"
3.5"
services
:
duniter-v2s
:
container_name
:
duniter-v2s
# choose the version of the image here
image
:
duniter/duniter-v2s:latest
duniter-v2s-mirror
:
container_name
:
duniter-v2s-mirror
# the image tells which network you are connecting to
# here it is gdev network
image
:
duniter/duniter-v2s-gdev:latest
ports
:
#
telemetry
#
prometheus telemetry to monitor resource use
-
9615:9615
#
rpc
#
RPC API (ws and http)
-
9944:9944
# p
2p
# p
ublic p2p endpoint
-
30333:30333
environment
:
DUNITER_NODE_NAME
:
"
duniter_local"
DUNITER_CHAIN_NAME
:
"
gdev"
volumes
:
-
duniter-local-data:/var/lib/duniter
distance-oracle
:
container_name
:
distance-oracle
# choose the version of the image here
image
:
duniter/duniter-v2s:latest
entrypoint
:
docker-distance-entrypoint
environment
:
ORACLE_RPC_URL
:
"
ws://duniter-v2s:9944"
ORACLE_RESULT_DIR
:
"
/var/lib/duniter/chains/gdev/distance/"
ORACLE_EXECUTION_INTERVAL
:
"
1800"
ORACLE_MAX_DEPTH
:
"
5"
ORACLE_LOG_LEVEL
:
"
info"
# read https://duniter.org/wiki/duniter-v2/configure-docker/
# to configure these
DUNITER_NODE_NAME
:
duniter_local
DUNITER_CHAIN_NAME
:
gdev
DUNITER_PUBLIC_ADDR
:
/dns/your.domain.name/tcp/30333
DUNITER_LISTEN_ADDR
:
/ip4/0.0.0.0/tcp/30333
volumes
:
-
duniter-local-data:/var/lib/duniter
...
...
This diff is collapsed.
Click to expand it.
docker/compose/docker-compose.smith.yml
0 → 100644
+
37
−
0
View file @
b9ae8853
# docker-compose.yml template for running a Duniter smith node
# for more doc, see https://duniter.org/wiki/duniter-v2/
services
:
# duniter smith node
duniter-v2s-smith
:
container_name
:
duniter-v2s-smith
image
:
duniter/duniter-v2s-gdev:latest
ports
:
# RPC API of a smith node should not be exposed publicly!
-
127.0.0.1:9944:9944
# public p2p endpoint
-
30333:30333
environment
:
DUNITER_NODE_NAME
:
duniter_smith
DUNITER_CHAIN_NAME
:
gdev
DUNITER_VALIDATOR
:
true
DUNITER_PRUNING_PROFILE
:
light
DUNITER_PUBLIC_ADDR
:
/dns/your.domain.name/tcp/30333
DUNITER_LISTEN_ADDR
:
/ip4/0.0.0.0/tcp/30333
volumes
:
-
duniter-smith-data:/var/lib/duniter
# distance oracle
distance-oracle
:
container_name
:
distance-oracle
# choose the version of the image here
image
:
duniter/duniter-v2s-gdev:latest
entrypoint
:
docker-distance-entrypoint
environment
:
ORACLE_RPC_URL
:
ws://duniter-v2s-smith:9944
ORACLE_RESULT_DIR
:
/var/lib/duniter/chains/gdev/distance/
ORACLE_EXECUTION_INTERVAL
:
1800
ORACLE_LOG_LEVEL
:
info
volumes
:
-
duniter-smith-data:/var/lib/duniter
volumes
:
duniter-smith-data
:
This diff is collapsed.
Click to expand it.
docker/compose/live-template.docker-compose.yml
deleted
100644 → 0
+
0
−
33
View file @
244ce1d8
# this template is used in /scripts/create-live-network.sh script
version
:
"
3.5"
services
:
duniter-rpc
:
image
:
duniter/duniter-v2s:DUNITER_IMAGE_TAG
restart
:
unless-stopped
ports
:
-
"
9944:9944"
-
"
30333:30333"
volumes
:
-
./duniter-rpc/:/var/lib/duniter/
environment
:
-
DUNITER_CHAIN_NAME=/var/lib/duniter/CURRENCY-raw.json
command
:
-
"
--bootnodes"
-
"
/dns/duniter-validator/tcp/30333/p2p/VALIDATOR_NODE_KEY"
duniter-validator
:
image
:
duniter/duniter-v2s:DUNITER_IMAGE_TAG
restart
:
unless-stopped
ports
:
-
"
127.0.0.1:9945:9944"
-
"
30334:30333"
volumes
:
-
./duniter-validator/:/var/lib/duniter/
environment
:
-
DUNITER_CHAIN_NAME=/var/lib/duniter/CURRENCY-raw.json
-
DUNITER_VALIDATOR=true
command
:
-
"
--bootnodes"
-
"
/dns/duniter-rpc/tcp/30333/p2p/RPC_NODE_KEY"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment