diff --git a/php/Dockerfile b/php/Dockerfile
index e3fdbab6762cc8403b9d3f589bed2652efe0de81..3dbd493a54caf084b9eb761c63c26d380b6a2fee 100644
--- a/php/Dockerfile
+++ b/php/Dockerfile
@@ -7,5 +7,7 @@ RUN if command -v a2enmod >/dev/null 2>&1; then \
         a2enmod rewrite headers \
     ;fi
 
+EXPOSE 3200
+
 # Install the PDO MySQL extension so we can database
 RUN docker-php-ext-install pdo_mysql
\ No newline at end of file
diff --git a/src/controller/GymController.php b/src/controller/GymController.php
index b842392f14b2c0717437aec20b15989f373bf33e..7200533598532a9df411250db508ecf8ddbb3029 100644
--- a/src/controller/GymController.php
+++ b/src/controller/GymController.php
@@ -17,11 +17,15 @@ class GymController extends BaseController
 
         switch ($requestMethod) {
             case 'GET':
+                if (isset($arrQueryStringParams['id'])) {
+                    $gym = GymService::getInstance()->getById($arrQueryStringParams["id"]);
+                    array_push($responseData, $gym);
+                    break;
+                }
                 $gyms = GymService::getInstance()->getAll();
                 foreach ($gyms as $gym) {
                     array_push($responseData, $gym->toResponse());
                 }
-
                 break;
             case 'POST':
                 $name = trim($_POST["name"]);
@@ -46,7 +50,7 @@ class GymController extends BaseController
 
                 $description = trim($_POST["description"]);
                 $len_description = strlen($description);
-                
+
                 if (strlen($description) > 255) {
                     throw new Exception("Description is limited to 255 characters long.");
                 }
@@ -186,7 +190,7 @@ class GymController extends BaseController
                 if ($monthlyPrice > 100000000) {
                     throw new Exception("Monthly price must be less than 100000000.");
                 }
-                
+
                 try {
                     GymService::getInstance()->edit(
                         $oldGym->gym_id,
@@ -218,7 +222,7 @@ class GymController extends BaseController
                         }
                     }
                 } else {
-                    $gymId = $arrQueryStringParams['gym_id'];                        
+                    $gymId = $arrQueryStringParams['gym_id'];
                     if (!isset($gymId)) {
                         throw new Exception("Gym_id is not provided!");
                     }
diff --git a/src/services/GymService.php b/src/services/GymService.php
index f437eccb178b55cf41b8b68f378c7577dff1fe5a..8548c13c553fc16aeb392d18333591cfbe1a1780 100644
--- a/src/services/GymService.php
+++ b/src/services/GymService.php
@@ -273,9 +273,9 @@ class GymService extends BaseService
 
   public function updateRating($gymId)
   {
-    try{
+    try {
       $pdo = new PDO("mysql:host=db;port=3306;dbname=gym_tracker", $_ENV['DB_USER'], $_ENV['DB_PASSWORD']);
-      
+
       // check if the rating is not empty
       $query = "SELECT * FROM ratings WHERE gym_id = :gym_id";
       $statement = $pdo->prepare($query);
@@ -290,15 +290,14 @@ class GymService extends BaseService
         return;
       } else {
         $query = "UPDATE gym SET average_rating = (SELECT AVG(rating) FROM ratings WHERE gym_id = :gym_id) WHERE gym_id = :gym_id";
-  
+
         $statement = $pdo->prepare($query);
-    
+
         $statement->execute([
           'gym_id' => $gymId
         ]);
       }
-    }
-    catch (Exception $e) {
+    } catch (Exception $e) {
       echo 'Caught exception: ', $e->getMessage(), "\n";
     }
   }