Spaces:
Runtime error
Runtime error
WebashalarForML
commited on
Commit
•
dfa3f50
1
Parent(s):
eed6dfe
Update docker-compose.yml
Browse files- docker-compose.yml +7 -2
docker-compose.yml
CHANGED
@@ -1,13 +1,18 @@
|
|
1 |
version: '3'
|
2 |
|
3 |
services:
|
4 |
-
|
5 |
build: .
|
|
|
6 |
ports:
|
7 |
- "7860:7860"
|
8 |
volumes:
|
|
|
|
|
9 |
- ./static/uploads:/app/static/uploads
|
10 |
- ./static/results:/app/static/results
|
11 |
environment:
|
12 |
-
|
|
|
|
|
13 |
restart: always
|
|
|
1 |
version: '3'
|
2 |
|
3 |
services:
|
4 |
+
flask_app:
|
5 |
build: .
|
6 |
+
container_name: flask_app
|
7 |
ports:
|
8 |
- "7860:7860"
|
9 |
volumes:
|
10 |
+
- /tmp/flask_sessions:/tmp/flask_sessions
|
11 |
+
- ./uploads:/app/uploads
|
12 |
- ./static/uploads:/app/static/uploads
|
13 |
- ./static/results:/app/static/results
|
14 |
environment:
|
15 |
+
FLASK_APP: app.py
|
16 |
+
FLASK_ENV: production
|
17 |
+
SESSION_FILE_DIR: /app/flask_sessions
|
18 |
restart: always
|