Building the Dockerfile does not run the initial configure setup. This means that:
there is no option to create the administrator account
The git, mongodb, auth and similar configurations must be made manually inside the config file
Expected behavior
Either:
an entrypoint script that checks for the existence of something like config.yml file and runs node wiki configure 3000 on first run. (and node server on following runs)
The option to pass the initial configuration via environnement variable (similar to how the docker images for mysql are done). Each element could be tested during the build process, similar to how the initial configuration wizard test connection to MongoDB and intial repo configurations.
Steps to reproduce the behavior
Clone the repository
build the docker file: docker build -t wikijs .
Run the resulting docker container: docker run -p 3000:3000 wikijs
Current workaround
Run the resulting docker container: docker run -p 3000:3000 -p31001:31001 wikijs
Enter the container using bash : docker exec -it <container id> bash
Run node wiki configure 31001 inside the container
Actual behavior
Building the Dockerfile does not run the initial
configure
setup. This means that:Expected behavior
Either:
an entrypoint script that checks for the existence of something like
config.yml
file and runsnode wiki configure 3000
on first run. (andnode server
on following runs)The option to pass the initial configuration via environnement variable (similar to how the docker images for mysql are done). Each element could be tested during the build process, similar to how the initial configuration wizard test connection to MongoDB and intial repo configurations.
Steps to reproduce the behavior
docker build -t wikijs .
docker run -p 3000:3000 wikijs
Current workaround
docker run -p 3000:3000 -p31001:31001 wikijs
docker exec -it <container id> bash
node wiki configure 31001
inside the containerdocker restart <container id>