An example command (to run as a daemon, swap -it
with -d
):
The particular steps are explained in the following:
/database_attachments
Pass environment variables to the container to define virtual servers
(multiple may be passed, the must simply have a different _my_suffix
):
-e 'NGX_VIRTUAL_SERVER[_my_suffix]=db.name.org@/path/to/rewrite'
Note that the path should never end with a slash.
(optional) Pass environment variables to set readonly status:
-e 'READ_ONLY_FILESERVER=yes'
(experimental) Pass environment variables to set CHMOD of written files:
-e 'FILE_MODE_FILESERVER=0664'
/var/log/supervisor
db
name must be kept! (--link name_of_container:db
)80
and/or 5984
.Note, that it is important that no ports are forwarded in the CouchDB container to the external world. This is because the nginx container sits in front of the CouchDB instance and routes the commands to it.
Port 80 must be available for the nginx to listen on. In DSM, a httpd service is using it by default. Then the nEDM-FileServer container cannot be started with the error message
A solution to disable httpd is given here. A DSM-update might restore the default behaviour and it has to be deactivated again.