Update docker-compose.yml
Browse files- docker-compose.yml +28 -20
docker-compose.yml
CHANGED
@@ -1,23 +1,31 @@
|
|
1 |
-
version:
|
|
|
2 |
services:
|
3 |
-
|
4 |
build: .
|
5 |
-
volumes:
|
6 |
-
- .:/app
|
7 |
ports:
|
8 |
-
- "
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
version: '3.8'
|
2 |
+
|
3 |
services:
|
4 |
+
app:
|
5 |
build: .
|
|
|
|
|
6 |
ports:
|
7 |
+
- "8501:8501"
|
8 |
+
volumes:
|
9 |
+
- .:/app # Mount current directory to /app in container for live code updates
|
10 |
+
env_file:
|
11 |
+
- .env # Load environment variables from .env file
|
12 |
+
# If you were using a separate DB like Postgres:
|
13 |
+
# depends_on:
|
14 |
+
# - db
|
15 |
+
# environment:
|
16 |
+
# - DATABASE_URL=postgresql://user:password@db:5432/mydatabase
|
17 |
+
|
18 |
+
# Example for a Postgres DB (uncomment and configure if needed instead of SQLite)
|
19 |
+
# db:
|
20 |
+
# image: postgres:15
|
21 |
+
# volumes:
|
22 |
+
# - postgres_data:/var/lib/postgresql/data/
|
23 |
+
# environment:
|
24 |
+
# - POSTGRES_USER=user
|
25 |
+
# - POSTGRES_PASSWORD=password
|
26 |
+
# - POSTGRES_DB=mydatabase
|
27 |
+
# ports:
|
28 |
+
# - "5432:5432"
|
29 |
+
|
30 |
+
# volumes: # Uncomment if using Postgres
|
31 |
+
# postgres_data:
|