Browse Source

Redis and MongoDB ports updated

Guillermo Espinoza 6 years ago
parent
commit
1bcb140ace
2 changed files with 2 additions and 0 deletions
  1. 1 0
      tools/src/Services/Mongodb.php
  2. 1 0
      tools/src/Services/Redis.php

+ 1 - 0
tools/src/Services/Mongodb.php

@@ -50,6 +50,7 @@ class Mongodb extends InitialService
             $this->getComposer()->service($module)
                 ->hostname($module)
 //                ->setReservationMemory('10g')
+                ->addPorts(27017, 27017)
                 ->addVolumes("/etc/localtime:/etc/localtime:ro")
                 ->addVolumes("./hosts:/etc/hosts")
                 ->network($this->getRelease()->_network_name)->ipv4_address($this->generateIP());

+ 1 - 0
tools/src/Services/Redis.php

@@ -42,6 +42,7 @@ class Redis extends InitialService
                 ->image($registry . "fd3/$module:" . $version)
                 ->command("redis-server --appendonly yes")
                 ->restart($this->getRelease()->_docker_restart_default)
+                ->addPorts(6379, 6379)
                 ->addVolumes("/etc/localtime:/etc/localtime:ro")
                 ->addVolumes("./hosts:/etc/hosts")
                 ->network($this->getRelease()->_network_name)->ipv4_address($this->generateIP());