Skip to content

Latest commit

 

History

History
32 lines (29 loc) · 1.08 KB

File metadata and controls

32 lines (29 loc) · 1.08 KB

Docker Setup

Linux

Run docker-compose

  • At the root of the project, set up environment variables in .env per 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_URI environment 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, or docker compose down --profile default first.

Build the container and push it to Docker Hub

  • At the root of the project, run
    docker build -t analytiq-hub/doc-router:latest .
    docker login
    docker push analytiq-hub/doc-router:latest