mirror of
https://github.com/outbackdingo/databunker.git
synced 2026-01-27 10:18:45 +00:00
update steps
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
# Installing Databunker
|
||||
|
||||
## From Docker container
|
||||
## Just run from the Docker container
|
||||
|
||||
The easiest method is to start docker container. Always use the latest version.
|
||||
This is the easiest method to start with Data Bunker. Always use the latest version.
|
||||
|
||||
You can fetch and start Databunker with the following command:
|
||||
|
||||
```
|
||||
mkdir -p /tmp/data
|
||||
docker run -v /tmp/data:/databunker/data -p 3000:3000 \
|
||||
cd ~
|
||||
mkdir -p data
|
||||
docker run -v ~/data:/databunker/data -p 3000:3000 \
|
||||
--rm --name dbunker paranoidguy/databunker
|
||||
```
|
||||
|
||||
@@ -45,11 +46,14 @@ docker run -p 3000:3000 -v /tmp/data:/databunker/data \
|
||||
|
||||
You can generate SSL certificates and place them in the /databunker/certs directory in the running container.
|
||||
|
||||
For example you can do this by mounting **/databunker/certs** to a local **certs/** directory as:
|
||||
For example you can do this by mounting **/databunker/certs** to a local **~/certs/** directory as:
|
||||
|
||||
```
|
||||
docker run -p 3000:3000 -v /tmp/data:/databunker/data \
|
||||
-v certs:/databunker/certs \
|
||||
cd ~
|
||||
mkdir -p certs
|
||||
# generate certificates, check bellow
|
||||
docker run -p 3000:3000 -v ~/data:/databunker/data \
|
||||
-v ~/certs:/databunker/certs \
|
||||
-e "DATABUNKER_MASTERKEY=**DATABUNKER_MASTERKEY**" \
|
||||
--rm --name dbunker paranoidguy/databunker
|
||||
|
||||
@@ -62,11 +66,20 @@ So, you need to prepare server.crt and server.key files.
|
||||
You can do the following command to generate one:
|
||||
|
||||
```
|
||||
cd ~
|
||||
mkdir -p certs
|
||||
cd certs
|
||||
openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 \
|
||||
-subj "/C=UK/ST=/L=London/O=Your-company Ltd./CN=databunker.your-company.com" \
|
||||
-keyout server.key -out server.crt
|
||||
```
|
||||
|
||||
## Use certificates generated by letsencrypt
|
||||
|
||||
Copy letsencrypt file **privkey.pem** to ~/certs/server.key
|
||||
|
||||
Copy letsencrypt file **fullchain.pem** file to ~/certs/server.crt
|
||||
|
||||
|
||||
# Create a test record
|
||||
|
||||
|
||||
Reference in New Issue
Block a user