README.md 1.5 KB
Newer Older
1 2 3 4
From https://github.com/klaemo/docker-couchdb/tree/master/2.0.0

See https://github.com/klaemo/docker-couchdb for documentation

5 6 7
# update 2018-01-09
Adding docker-wenotes-cron - might not need it, but cron in the docker-wenotes-tools container seems unreliable.

Dave Lane's avatar
Dave Lane committed
8
# Starting CouchDB
9

Dave Lane's avatar
Dave Lane committed
10
> docker run -d --name couchdb -v /home/dave/Docker/couchdb/data:/opt/couchdb/data oeru/couchdb
11 12


Dave Lane's avatar
Dave Lane committed
13
# Old
14

Dave Lane's avatar
Dave Lane committed
15
Built via: `docker build -t oeru/couchdb .`
16

Dave Lane's avatar
Dave Lane committed
17
## Building and Running Containers
18

Dave Lane's avatar
Dave Lane committed
19
> cd [path to wenotes-combined]
20

Dave Lane's avatar
Dave Lane committed
21
### CouchDB
Dave Lane's avatar
Dave Lane committed
22

Dave Lane's avatar
Dave Lane committed
23
Build: `docker build -t oeru/couchdb docker-couchdb`
24
Launch (replacing [admin password] and [bot password]):
Dave Lane's avatar
Dave Lane committed
25 26 27 28 29

>  docker run --name couchdb -v /home/dave/Docker/wenotes/data:/opt/couchdb/data \
>    -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=[admin password] \
>    -e COUCHDB_BOT_USER=bot -e COUCHDB_BOT_PASSWORD=[bot password] \
>    -d oeru/couchdb
Dave Lane's avatar
Dave Lane committed
30
    
Dave Lane's avatar
Dave Lane committed
31
### Backup/Restore
32 33 34

Do a database dumps and restores using couchdb-backup.sh - from https://github.com/danielebailo/couchdb-dump

Dave Lane's avatar
Dave Lane committed
35
### Faye
Dave Lane's avatar
Dave Lane committed
36

Dave Lane's avatar
Dave Lane committed
37
Build: `docker build -t oeru/faye docker-faye`
38
Launch:
Dave Lane's avatar
Dave Lane committed
39 40 41 42

>   docker run --name faye -v /home/dave/Docker/wenotes/faye:/opt/wenotes/server \
>     -v /home/dave/Docker/wenotes/config/options.json:/opt/wenotes/options.json \
>     -d oeru/faye
43

Dave Lane's avatar
Dave Lane committed
44
### WENotes-tools
Dave Lane's avatar
Dave Lane committed
45

Dave Lane's avatar
Dave Lane committed
46
Build: `docker build -t oeru/wenotes docker-wenotes-tools`
Dave Lane's avatar
Dave Lane committed
47
Launch:
Dave Lane's avatar
Dave Lane committed
48 49 50 51

>    docker run --name faye -v /home/dave/Docker/wenotes/wenotes:/opt/wenotes/wenotes \
>      -v /home/dave/Docker/wenotes/config/options.json:/opt/wenotes/options.json \
>      -d oeru/wenotes