- At the root of the project, set up environment variables in
.envper example at .env.example - Build the container
docker compose --build --no-cache
- Alternatively, pull the container from Docker Hub:
docker compose pull
- You can run the container with embedded MongoDB with the following command:
docker compose --profile with-mongodb up
- Or, you can set the
MONGODB_URIenvironment variable to point to a remote MongoDB server and run without embedded MongoDB with the following command:docker compose --profile default up
- The application will be available at http://localhost:3000
- When restarting the application, run
docker compose down --profile with-mongodb, ordocker compose down --profile defaultfirst.
- At the root of the project, run
docker build -t analytiq-hub/doc-router:latest . docker login docker push analytiq-hub/doc-router:latest