mirror of
				https://source.quilibrium.com/quilibrium/ceremonyclient.git
				synced 2025-10-31 15:08:00 +00:00 
			
		
		
		
	add .dockerignore and docker instructions (#56)
* add .dockerignore * add docker specific readme * update restart policy to unless-stopped
This commit is contained in:
		
							parent
							
								
									9fc46fff2f
								
							
						
					
					
						commit
						27aa02383c
					
				
							
								
								
									
										6
									
								
								.dockerignore
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								.dockerignore
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,6 @@ | ||||
| .config | ||||
| **/.idea | ||||
| **/.vscode | ||||
| github.env | ||||
| Taskfile.yaml | ||||
| 
 | ||||
							
								
								
									
										50
									
								
								DOCKER-README.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								DOCKER-README.md
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,50 @@ | ||||
| # Quilibrium Docker Instructions | ||||
| 
 | ||||
| ## Build | ||||
| 
 | ||||
| Build the docker image: | ||||
| ```shell | ||||
| docker build -t quilibrium -t quilibrium:1.2.9 . | ||||
| ``` | ||||
| 
 | ||||
| Use latest version instead of `1.2.9`. | ||||
| 
 | ||||
| 
 | ||||
| ## Run | ||||
| 
 | ||||
| Run Quilibrium in a container: | ||||
| ```shell | ||||
| docker compose up -d | ||||
| ``` | ||||
| 
 | ||||
| A `.config/` subfolder will be created under the current folder, this is mapped inside the container. | ||||
| Make sure you backup `config.ym` and `keys.yml`. | ||||
| 
 | ||||
| 
 | ||||
| ## Intereact with a running cotainer | ||||
| 
 | ||||
| Drop into a shell inside a running container: | ||||
| ```shell | ||||
| docker compose exec -it node sh | ||||
| ``` | ||||
| 
 | ||||
| Watch the logs: | ||||
| ```shell | ||||
| docker compose logs | ||||
| ``` | ||||
| 
 | ||||
| Get the Peer ID: | ||||
| ```shell | ||||
| docker compose exec node go run ./... -peer-id | ||||
| ``` | ||||
| 
 | ||||
| Get the token ballance: | ||||
| ```shell | ||||
| docker compose exec node go run ./... -balance | ||||
| ``` | ||||
| 
 | ||||
| Run the DB console: | ||||
| ```shell | ||||
| docker compose exec node go run ./... -db-console | ||||
| ``` | ||||
| 
 | ||||
| @ -6,7 +6,7 @@ services: | ||||
|   node: | ||||
|     build: ./ | ||||
|     image: quilibrium | ||||
|     restart: always | ||||
|     restart: unless-stopped | ||||
|     environment: | ||||
|       - DEFAULT_LISTEN_GRPC_MULTIADDR=/ip4/0.0.0.0/tcp/8337 | ||||
|       - DEFAULT_LISTEN_REST_MULTIADDR=/ip4/0.0.0.0/tcp/8338 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Marius Scurtescu
						Marius Scurtescu