Spaces:
Configuration error
Configuration error
Update docker-compose.yml
Browse files- docker-compose.yml +20 -4
docker-compose.yml
CHANGED
@@ -1,8 +1,24 @@
|
|
1 |
-
version: '3'
|
2 |
services:
|
3 |
app:
|
4 |
build: .
|
|
|
5 |
ports:
|
6 |
-
- "
|
7 |
-
|
8 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
version: '3.8'
|
2 |
services:
|
3 |
app:
|
4 |
build: .
|
5 |
+
container_name: flask_app
|
6 |
ports:
|
7 |
+
- "8000:8000"
|
8 |
+
environment:
|
9 |
+
- MONGO_URI=${MONGO_URI}
|
10 |
+
- HF_API_KEY=${HF_API_KEY}
|
11 |
+
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
|
12 |
+
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
|
13 |
+
- ENDPOINT_URI=${ENDPOINT_URI}
|
14 |
+
command: ["flask", "run", "--host=0.0.0.0", "--port=8000"]
|
15 |
+
|
16 |
+
mongo:
|
17 |
+
image: mongo:4.4
|
18 |
+
container_name: mongodb
|
19 |
+
ports:
|
20 |
+
- "27017:27017"
|
21 |
+
environment:
|
22 |
+
MONGO_INITDB_ROOT_USERNAME: root
|
23 |
+
MONGO_INITDB_ROOT_PASSWORD: example
|
24 |
+
|