Skip to content

Optional: Docker build yourself

Warning

This is an optional step. The application can be deployed using pre-built Docker images as described in the Getting Started guide. No guarantees are made that building and deploying the application yourself will work as expected.

If you want to build the Docker image yourself, you can do so by following these steps:

  1. Clone the Repository: First, clone the Wise Rooms repository from GitLab.

    git clone https://gitlab.rz.htw-berlin.de/s0595954/wise-25-26-rooms.git
    cd wise-25-26-rooms
    
  2. Build the Docker Image: Use the Dockerfile provided in the repository to build the Docker image.

    cd backend
    docker build -t wise-rooms-backend .
    
    cd frontend
    docker build -t wise-rooms-frontend .
    
  3. Change the image in compose.yml: Update the compose.yml file to use the newly built images instead of pulling from a registry.

    1
    2
    3
    4
    5
    services:
      ...
      wise-2526-rooms-backend:
        image: wise-rooms-backend
       ...
    
    1
    2
    3
    4
    5
    services:
      ...
      wise-2526-rooms-frontend:
        image: wise-rooms-frontend
      ...
    
  4. Deploy the Application: Use Docker Compose to deploy the application with your custom-built images.

    docker compose up -d