Add Docker
Former-commit-id: dcb37f7c8649e689e93a5cbec639245cb66e3b05 [formerly 4a0678e53f804e2898df22b95cb2b192a5e481b8] [formerly 4435baab269f8142b49fdbc75c437fc14cc67839 [formerly aaa254689f
]]
Former-commit-id: ce01f9194f26cdfd3b68edf5a59da33a4b9f2d37 [formerly 67c11145731e1171f1ab30ab3a632498dcb73594]
Former-commit-id: a2549d020b96c251bf002f30530df8f25cf03609
This commit is contained in:
parent
7f46ef9a97
commit
3cee6b67f0
52
README.md
52
README.md
|
@ -79,7 +79,57 @@ Otherwise, you may not want to use a configuration file, which can be done using
|
|||
|
||||
## Docker
|
||||
|
||||
(TODO)
|
||||
File Manager is also on [Docker Hub](https://hub.docker.com/r/hacdias/filemanager/) so you can just `docker pull hacdias/filemanager`.
|
||||
|
||||
|
||||
### Paths in the container
|
||||
|
||||
- Config: `/etc/config.json`
|
||||
- Database: `/etc/database.db`
|
||||
- Base scope: `/srv`
|
||||
|
||||
### Default config.json
|
||||
|
||||
```json
|
||||
{
|
||||
"port": 80,
|
||||
"address": "",
|
||||
"database": "/etc/database.db",
|
||||
"scope": "/srv",
|
||||
"allowCommands": true,
|
||||
"allowEdit": true,
|
||||
"allowNew": true,
|
||||
"commands": []
|
||||
}
|
||||
```
|
||||
|
||||
### Usage
|
||||
|
||||
If the user wants to use the `config.json` file:
|
||||
|
||||
```shell
|
||||
docker run \
|
||||
-v /path/to/sites/root:/srv \
|
||||
-v /path/to/config.json:/etc/config.json \
|
||||
-v /path/to/database.db:/etc/database.db \
|
||||
-p 80:80 \
|
||||
hacdias/filemanager
|
||||
```
|
||||
|
||||
If the user doesn't use the `config.json` file:
|
||||
|
||||
```shell
|
||||
docker run \
|
||||
-v /path/to/sites/root:/srv \
|
||||
-v /path/to/database.db:/etc/database.db \
|
||||
-p 80:80 \
|
||||
hacdias/filemanager
|
||||
--port 80
|
||||
--database /etc/database.db
|
||||
--scope /srv
|
||||
--other-flag other-value
|
||||
```
|
||||
|
||||
|
||||
# Features
|
||||
|
||||
|
|
Loading…
Reference in New Issue