Indeed @Mario-Pacheco. But you can pass a config file previously written :
--volume=/path/to/config.json:/usr/src/app/config.json
The config file is like :
{
"url": "https://forum.<your domain>.com",
"secret": "<secret password to database>",
"database": "redis",
"port": 4567,
"redis": {
"host": "redis",
"port": "6379",
"database": "0"
}
}
I give you my command line to launch the forum :
docker run -d \
--name <name of the forum> \
--link <name of redis container>:redis \
--env 'VIRTUAL_HOST=forum.<your domain>.com' \ <= For the nginx reverse proxy container
--env 'LETSENCRYPT_HOST=forum.<your domain>.com' \ <= For the letsencrypt container
--env 'LETSENCRYPT_EMAIL=<email>@<your domain>.com' \
--volume=/Path/to/config.jso:/usr/src/app/config.json \ <= For the config file
--volume=/Path/to/uploads/files:/usr/src/app/public/uploads/files \ <= To keep your data if you remove the container
--volume=/Path/to/uploads/profile:/usr/src/app/public/uploads/profile \ <= To keep your data if you remove the container
--volume=/Path/to/datas:/data \ <= To keep your data if you remove the container
benlubar/nodebb