Skip to content

Commit

Permalink
Fix web service not returning results (#15)
Browse files Browse the repository at this point in the history
* refactor: change volume bindings to short syntax
* fix: connect external interface and web services
* feat: remove saving data to local folders, replacing with volumes
  • Loading branch information
amitkparekh authored Feb 6, 2021
1 parent 8370b68 commit 34e64bc
Showing 1 changed file with 17 additions and 39 deletions.
56 changes: 17 additions & 39 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ services:
- -m
- ayesaac.services.automatic_speech_recognition
volumes:
- type: bind
source: ./ayesaac/services/automatic_speech_recognition
target: /app/ayesaac/services/automatic_speech_recognition
- ./ayesaac/services/automatic_speech_recognition:/app/ayesaac/services/automatic_speech_recognition

camera_manager:
container_name: camera_manager
Expand All @@ -48,9 +46,7 @@ services:
- -m
- ayesaac.services.camera_manager.main
volumes:
- type: bind
source: ./ayesaac/services/camera_manager
target: /app/ayesaac/services/camera_manager
- ./ayesaac/services/camera_manager:/app/ayesaac/services/camera_manager

colour_detection:
container_name: colour_detection
Expand All @@ -65,9 +61,7 @@ services:
- -m
- ayesaac.services.colour_detection.main
volumes:
- type: bind
source: ./ayesaac/services/colour_detection
target: /app/ayesaac/services/colour_detection
- ./ayesaac/services/colour_detection:/app/ayesaac/services/colour_detection

external_interface:
container_name: external_interface
Expand All @@ -82,12 +76,8 @@ services:
- -m
- ayesaac.services.external_interface
volumes:
- type: bind
source: ./ayesaac/services/external_interface
target: /app/ayesaac/services/external_interface
- type: bind
source: ./output
target: /app/output
- ./ayesaac/services/external_interface:/app/ayesaac/services/external_interface
- output_data:/app/output

interpreter:
container_name: interpreter
Expand All @@ -102,9 +92,7 @@ services:
- -m
- ayesaac.services.interpreter.main
volumes:
- type: bind
source: ./ayesaac/services/interpreter
target: /app/ayesaac/services/interpreter
- ./ayesaac/services/interpreter:/app/ayesaac/services/interpreter

manager:
container_name: manager
Expand All @@ -119,9 +107,7 @@ services:
- -m
- ayesaac.services.manager.main
volumes:
- type: bind
source: ./ayesaac/services/manager
target: /app/ayesaac/services/manager
- ./ayesaac/services/manager:/app/ayesaac/services/manager

natural_language_generator:
container_name: natural_language_generator
Expand All @@ -136,9 +122,7 @@ services:
- -m
- ayesaac.services.natural_language_generator.main
volumes:
- type: bind
source: ./ayesaac/services/natural_language_generator
target: /app/ayesaac/services/natural_language_generator
- ./ayesaac/services/natural_language_generator:/app/ayesaac/services/natural_language_generator

natural_language_understanding:
container_name: natural_language_understanding
Expand All @@ -153,9 +137,7 @@ services:
- -m
- ayesaac.services.natural_language_understanding.main
volumes:
- type: bind
source: ./ayesaac/services/natural_language_understanding
target: /app/ayesaac/services/natural_language_understanding
- ./ayesaac/services/natural_language_understanding:/app/ayesaac/services/natural_language_understanding

object_detection:
container_name: object_detection
Expand All @@ -170,9 +152,7 @@ services:
- -m
- ayesaac.services.object_detection.main
volumes:
- type: bind
source: ./ayesaac/services/object_detection
target: /app/ayesaac/services/object_detection
- ./ayesaac/services/object_detection:/app/ayesaac/services/object_detection

optical_character_recognition:
container_name: optical_character_recognition
Expand All @@ -187,9 +167,7 @@ services:
- -m
- ayesaac.services.optical_character_recognition.main
volumes:
- type: bind
source: ./ayesaac/services/optical_character_recognition
target: /app/ayesaac/services/optical_character_recognition
- ./ayesaac/services/optical_character_recognition:/app/ayesaac/services/optical_character_recognition

position_detection:
container_name: position_detection
Expand All @@ -204,9 +182,7 @@ services:
- -m
- ayesaac.services.position_detection.main
volumes:
- type: bind
source: ./ayesaac/services/position_detection
target: /app/ayesaac/services/position_detection
- ./ayesaac/services/position_detection:/app/ayesaac/services/position_detection

web:
container_name: web
Expand All @@ -224,6 +200,8 @@ services:
- run
- "--host=0.0.0.0"
volumes:
- type: bind
source: ./ayesaac/services/web
target: /app/ayesaac/services/web
- ./ayesaac/services/web:/app/ayesaac/services/web
- output_data:/app/output

volumes:
output_data:

0 comments on commit 34e64bc

Please sign in to comment.