microservices/assignment-service
2025-05-05 10:13:36 -07:00
..
routes working logout and student login 2025-05-02 15:06:00 -07:00
.dockerignore A 2025-04-24 11:36:30 -07:00
.env bug fix for fly server 2025-05-02 18:33:50 -07:00
.env.development bug fix for fly server 2025-05-02 18:33:50 -07:00
.env.test bug fix for fly server 2025-05-02 18:33:50 -07:00
dev.env added complete api functionality 2025-04-29 12:01:10 -07:00
Dockerfile A 2025-04-24 11:36:30 -07:00
DockerfileDEV added docker file 2025-04-28 09:53:22 -07:00
fly.toml modified assignment-service/server.js 2025-05-05 09:57:33 -07:00
package-lock.json merged with main 2025-05-05 10:13:36 -07:00
package.json merged with main 2025-05-05 10:13:36 -07:00
README.md A 2025-04-24 11:36:30 -07:00
server.js merged with main 2025-05-05 10:13:36 -07:00

Running the Project with Docker

This section provides instructions to build and run the project using Docker.

Prerequisites

  • Ensure Docker and Docker Compose are installed on your system.
  • The project requires Node.js version 22.13.1 as specified in the Dockerfile.

Environment Variables

  • If applicable, create a .env file in the project root directory to define environment variables. Uncomment the env_file line in the docker-compose.yml file to enable this.

Build and Run Instructions

  1. Build the Docker image and start the services:

    docker-compose up --build
    
  2. Access the application at http://localhost:8080.

Configuration

  • The application runs with a non-root user for enhanced security.
  • The NODE_ENV is set to production and NODE_OPTIONS is configured for optimized memory usage.

Exposed Ports

  • The application service exposes port 8080 to the host system.

For further details, refer to the provided Dockerfile and docker-compose.yml files.