Skip to content

Commit 6354401

Browse files
committed
first pass at Docker README
1 parent 72319ae commit 6354401

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

docker/README.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# armadietto [![Build Status](https://secure.travis-ci.org/remotestorage/armadietto.svg)](http://travis-ci.org/remotestorage/armadietto) [![js-semistandard-style](https://img.shields.io/badge/code%20style-semistandard-brightgreen.svg?style=flat-square)](https://github.com/Flet/semistandard) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/0eaafdf96ebb47a9ac462bcf6a7ccb06)](https://www.codacy.com/app/lesion/armadietto?utm_source=github.com&utm_medium=referral&utm_content=remotestorage/armadietto/&utm_campaign=Badge_Grade)
2+
3+
> ### :warning: WARNING
4+
> Please do not consider `armadietto` production ready, this project is still
5+
> considered experimental. As with any alpha-stage storage technology, you
6+
> MUST expect that it will eat your data and take precautions against this. You
7+
> SHOULD expect that its APIs and storage schemas will change before it is
8+
> labelled stable.
9+
10+
## What is this?
11+
12+
Armadietto is a [RemoteStorage](https://remotestorage.io) server written for Node.js.
13+
14+
This is a complete rewrite of [reStore](https://github.com/jcoglan/restore).
15+
16+
It is also available as the
17+
[armadietto](https://www.npmjs.com/package/armadietto) NPM package.
18+
19+
## Usage
20+
21+
```
22+
docker run -d -p 8000:8000 armadietto/armadietto:latest
23+
```
24+
25+
The armadietto will run as the armadietto user (UID 6582) in the container.
26+
27+
## Configuration
28+
29+
The default configuration file for armadietto can be found in
30+
`/etc/armadietto.conf.json` and contains the following configuration:
31+
32+
```json
33+
{
34+
"allow_signup": true,
35+
"storage_path": "/usr/share/armadietto",
36+
"cache_views": true,
37+
"http": {
38+
"host": "0.0.0.0",
39+
"port": 8000
40+
},
41+
"https": {
42+
"enable": false,
43+
"force": false,
44+
"port": 4443,
45+
"cert": "/etc/letsencrypt/live/example.com/cert.pem",
46+
"key": "/etc/letsencrypt/live/example.com/privkey.pem"
47+
},
48+
"basePath": ""
49+
}
50+
```
51+
52+
A custom configuration file can be used by mounting it in the container
53+
54+
```
55+
docker run -d -v /my/custom/armadietto.conf.json:/etc/armadietto.conf.json:ro -p 8000:8000 armadietto/armadietto:latest
56+
```
57+
58+
A suitable data directory should also be mounted in the container to
59+
ensure data is persisted.
60+
61+
```
62+
docker run -d -v /data/armadietto:/usr/share/armadietto -p 8000:8000 armadietto/armadietto:latest
63+
```
64+
65+
*Note:* The folder and its contents must be writable and readable by the UID
66+
6582.

0 commit comments

Comments
 (0)