mirror of
https://github.com/eliasstepanik/filesystem-livesync.git
synced 2026-01-11 05:28:31 +00:00
added base Docker readme
This commit is contained in:
parent
631271e941
commit
f90ac32864
39
docker/README.md
Normal file
39
docker/README.md
Normal file
@ -0,0 +1,39 @@
|
||||
## Build the image:
|
||||
|
||||
From the root directory of the [vrtmrz/filesystem-livesync](https://github.com/vrtmrz/filesystem-livesync) repository run the following to build the image:
|
||||
|
||||
```
|
||||
docker build -t filesystem-livesync -f docker/Dockerfile .
|
||||
```
|
||||
|
||||
## Configure the image:
|
||||
|
||||
Assuming a folder at `/tmp/data` was going to store your config and vaults, write the following to `/tmp/data/config.json`:
|
||||
|
||||
```
|
||||
{
|
||||
"config_1": {
|
||||
"server": {
|
||||
"uri": "http://example-uri/private1_vault",
|
||||
"auth": {
|
||||
"username": "couch_db_username",
|
||||
"password": "couch_db_password",
|
||||
"passphrase": "passphrase_of_private_vault"
|
||||
},
|
||||
"path": "shared/"
|
||||
},
|
||||
"local": {
|
||||
"path": "/data/vault1",
|
||||
"processor": "utils/build.sh",
|
||||
"initialScan": false
|
||||
},
|
||||
"auto_reconnect": true
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Run the image:
|
||||
|
||||
```
|
||||
docker run -it --rm -v /tmp/data:/data filesystem-livesync
|
||||
```
|
||||
Loading…
x
Reference in New Issue
Block a user