-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (29 loc) · 1017 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (29 loc) · 1017 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
# Docker Compose configuration for m2m
# Simplifies running the m2m toolkit in a containerized environment
version: '3.8'
services:
# Web interface service (Streamlit)
m2m:
# Use pre-built image from Docker Hub
image: linumuqam/m2m:latest
# Uncomment to build locally instead of using the pre-built image
# build:
# context: .
# dockerfile: Dockerfile
container_name: m2m-toolkit
ports:
- "8501:8501" # Streamlit web interface
volumes:
# Mount local directories for data persistence
- ./data/input:/data/input:ro # Read-only input data
- ./data/output:/data/output:rw # Read-write output data
- ./scripts:/scripts:ro # Your m2m scripts (read-only)
- m2m-cache:/data/cache # Persistent cache
environment:
- M2M_CACHE_DIR=/data/cache
- STREAMLIT_SERVER_HEADLESS=true
- STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
restart: unless-stopped
volumes:
m2m-cache:
driver: local