mirror of
https://github.com/outbackdingo/databunker.git
synced 2026-01-27 10:18:45 +00:00
add installation document
This commit is contained in:
@@ -8,11 +8,14 @@ You can fetch and start Databunker with the following command:
|
||||
|
||||
```
|
||||
mkdir -p /tmp/data
|
||||
docker run -v /tmp/data:/databunker/data -p 3000:3000 --rm --name dbunker paranoidguy/databunker
|
||||
docker run -v /tmp/data:/databunker/data -p 3000:3000 \
|
||||
--rm --name dbunker paranoidguy/databunker
|
||||
```
|
||||
|
||||
This command will init Databunker service, init database and start container.
|
||||
|
||||
This command will print **DATABUNKER_MASTERKEY** and **DATABUNKER_ROOTTOKEN**.
|
||||
|
||||
The database will be init in the /tmp/data parent directory.
|
||||
|
||||
**DATABUNKER_MASTERKEY** is used to encrypt database records.
|
||||
@@ -22,7 +25,7 @@ The database will be init in the /tmp/data parent directory.
|
||||
|
||||
## Stop service
|
||||
|
||||
To stop container you can run the following command:
|
||||
To stop Databunker container you can run the following command:
|
||||
|
||||
```
|
||||
docker kill dbunker
|
||||
@@ -30,9 +33,9 @@ docker kill dbunker
|
||||
|
||||
# Run it again
|
||||
|
||||
You can run it again, after it was initalized. Run the following command:
|
||||
You can run it again, after it was initalized. Use the following command:
|
||||
|
||||
```
|
||||
docker run -v /tmp/data:/databunker/data -p 3000:3000 -e "DATABUNKER_MASTERKEY=KEY" --rm --name dbunker paranoidguy/databunker
|
||||
|
||||
docker run -v /tmp/data:/databunker/data -p 3000:3000 \
|
||||
-e "DATABUNKER_MASTERKEY=KEY" --rm --name dbunker paranoidguy/databunker
|
||||
```
|
||||
Reference in New Issue
Block a user