Update compose.yaml
Browse files- compose.yaml +12 -2
compose.yaml
CHANGED
@@ -8,11 +8,21 @@
|
|
8 |
# database or a cache. For examples, see the Awesome Compose repository:
|
9 |
# https://github.com/docker/awesome-compose
|
10 |
services:
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
build:
|
13 |
context: .
|
|
|
14 |
ports:
|
15 |
-
-
|
|
|
16 |
|
17 |
# The commented out section below is an example of how to define a PostgreSQL
|
18 |
# database that your application can use. `depends_on` tells Docker Compose to
|
|
|
8 |
# database or a cache. For examples, see the Awesome Compose repository:
|
9 |
# https://github.com/docker/awesome-compose
|
10 |
services:
|
11 |
+
fastapi:
|
12 |
+
build:
|
13 |
+
context: .
|
14 |
+
dockerfile: Dockerfile_fastapi
|
15 |
+
ports:
|
16 |
+
- "8000:8000"
|
17 |
+
command: uvicorn main:app --host 0.0.0.0 --port 8000
|
18 |
+
|
19 |
+
streamlit:
|
20 |
build:
|
21 |
context: .
|
22 |
+
dockerfile: Dockerfile_streamlit
|
23 |
ports:
|
24 |
+
- "8501:8501"
|
25 |
+
command: streamlit run BrainBot.py
|
26 |
|
27 |
# The commented out section below is an example of how to define a PostgreSQL
|
28 |
# database that your application can use. `depends_on` tells Docker Compose to
|