forked from openclimatefix/analysis-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
32 lines (30 loc) · 959 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version: "3.8"
services:
analysis-dashboard:
build: .
ports:
- "8501:8501" # Mapping the Streamlit port
- "5433:5433" # Database port (if necessary)
environment:
DB_URL: ${DB_URL:-} # If DB_URL is not provided, it will be an empty string
password: ${PASSWORD:-example} # Default password if not set
SHOW_PVNET_GSP_SUM: "0" # Change this if necessary based on your app settings
REGION: "india" # Can be "uk" or "india", change as needed
ENVIRONMENT: "development" # Can be "development" or "production"
volumes:
- ./src:/app/src # Mounting the src directory inside the container
command:
[
"streamlit",
"run",
"src/main.py",
"--server.port=8501",
"--browser.serverAddress=0.0.0.0",
"--server.address=0.0.0.0",
"--server.enableCORS=False"
]
networks:
- analysis-net
networks:
analysis-net:
driver: bridge