-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (35 loc) · 985 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
36 lines (35 loc) · 985 Bytes
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
33
34
35
36
services:
minio:
image: quay.io/minio/minio
container_name: minio_segmenai
ports:
- "9000:9000" # S3 API
- "9001:9001" # Web console
environment:
MINIO_ROOT_USER: ${MINIO_ROOT_USER}
MINIO_ROOT_PASSWORD: ${MINIO_ROOT_PASSWORD}
volumes:
- ./localminio:/data
command: server /data --console-address ":9001"
segmenai:
build: .
container_name: segmenai_app
ports:
- "8501:8501"
volumes:
- .:/app
depends_on:
- minio
environment:
MINIO_ENDPOINT: http://minio:9000
MINIO_ACCESS_KEY: minioadmin
MINIO_SECRET_KEY: minioadmin
command: >
sh -c "
echo 'Waiting for MinIO to be ready...' &&
until curl -s http://minio:9000/minio/health/live; do
sleep 2
done &&
echo 'MinIO is ready. Starting Streamlit...' &&
streamlit run segmenai.py --server.port 8501 --server.address 0.0.0.0
"