Bhavi23 commited on
Commit
3e09daa
·
verified ·
1 Parent(s): ac6bb2e

Create docker-compose.yml

Browse files
Files changed (1) hide show
  1. docker-compose.yml +22 -0
docker-compose.yml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ version: '3.8'
2
+
3
+ services:
4
+ satellite-classifier:
5
+ build:
6
+ context: .
7
+ dockerfile: Dockerfile
8
+ ports:
9
+ - "8501:8501"
10
+ environment:
11
+ - STREAMLIT_SERVER_HEADLESS=true
12
+ - STREAMLIT_SERVER_ENABLE_CORS=false
13
+ - STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false
14
+ volumes:
15
+ - ./logs:/app/logs
16
+ restart: unless-stopped
17
+ healthcheck:
18
+ test: ["CMD", "curl", "-f", "http://localhost:8501/_stcore/health"]
19
+ interval: 30s
20
+ timeout: 10s
21
+ retries: 3
22
+ start_period: 40s