Docs: F release docs update
[pti/o2.git] / docker-compose.yml
index 477441a..ad3d857 100644 (file)
@@ -11,6 +11,7 @@ services:
       - postgres
       - redis
     environment:
+      - API_HOST=api
       - DB_HOST=postgres
       - DB_PASSWORD=o2ims123
       - REDIS_HOST=redis
@@ -41,7 +42,7 @@ services:
     environment:
       - DB_HOST=postgres
       - DB_PASSWORD=o2ims123
-      - API_HOST=api
+      - API_HOST_EXTERNAL_FLOATING=${API_HOST_EXTERNAL_FLOATING}
       - REDIS_HOST=redis
       - PYTHONDONTWRITEBYTECODE=1
       - FLASK_APP=/o2app/entrypoints/flask_application.py
@@ -73,6 +74,7 @@ services:
     depends_on:
       - redis_pubsub
     environment:
+      - API_HOST_EXTERNAL_FLOATING=${API_HOST_EXTERNAL_FLOATING}
       - DB_HOST=postgres
       - DB_PASSWORD=o2ims123
       - REDIS_HOST=redis
@@ -93,6 +95,31 @@ services:
       - /bin/sh
       - /tests/o2app-watcher-entry.sh
 
+  mock_smo:
+    build:
+      context: ./mock_smo
+      dockerfile: Dockerfile
+    image: mock-smo
+    depends_on:
+      - mock_smo_redis
+    environment:
+      - API_HOST=api
+      - REDIS_HOST=mock_smo_redis
+      - MOCK_SMO_HOST=mock_smo
+      - PYTHONDONTWRITEBYTECODE=1
+      - FLASK_APP=/mock_smo/entrypoints/mock_smo.py
+      - FLASK_DEBUG=1
+      - PYTHONUNBUFFERED=1
+      - LOGGING_CONFIG_LEVEL=DEBUG
+    volumes:
+      - ./mock_smo/etc:/tmp/etc
+      - ./mock_smo/mock_smo:/mock_smo
+    entrypoint:
+      - /bin/sh
+      - /src/o2app-mock-smo.sh
+    ports:
+      - "5001:80"
+
   postgres:
     image: postgres:9.6
     environment:
@@ -105,3 +132,8 @@ services:
     image: redis:alpine
     ports:
       - "63791:6379"
+
+  mock_smo_redis:
+    image: redis:alpine
+    ports:
+      - "63792:6379"