Luciano Andrade 8 yıl önce
ebeveyn
işleme
8a1afcb014
2 değiştirilmiş dosya ile 16 ekleme ve 1 silme
  1. 11 1
      docker-compose.yml
  2. 5 0
      readme.md

+ 11 - 1
docker-compose.yml

@@ -1,6 +1,5 @@
 version: "2.0"
 services:
-
   base:
     image: fd3-base
     build:
@@ -9,6 +8,8 @@ services:
       - "8000:8000"
     links:
       - mysql:db
+    environment:
+      VIRTUAL_HOST: base
 
   ftth:
     image: fd3-ftth
@@ -17,6 +18,12 @@ services:
     links:
       - mysql:db
       - base:base
+      - mqtt:mqtt
+    ports:
+      - "8001:8000"
+    environment:
+      VIRTUAL_HOST: ftth
+
   mysql:
     ports:
     - 3306:3306/tcp
@@ -28,6 +35,9 @@ services:
       io.rancher.service.hash: ff5c1be5e84f2419adf14e165573a7c76c6d58fb
     image: mysql:latest
 
+  mqtt:
+    image: rabbitmq
+
   nginx-proxy:
     image: jwilder/nginx-proxy
     container_name: nginx-proxy

+ 5 - 0
readme.md

@@ -4,6 +4,11 @@ docker-compose run base bin/console doctrine:database:create --if-not-exists
 docker-compose run base bin/console doctrine:schema:update --force
 ~~~
 
+~~~
+docker-compose run ftth bin/console doctrine:database:create --if-not-exists
+docker-compose run ftth bin/console doctrine:schema:update --force
+~~~
+
 #Crear un usuario inicial
 ~~~
 docker-compose run base bin/console fos...