-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
27 lines (26 loc) · 843 Bytes
/
docker-compose.yml
File metadata and controls
27 lines (26 loc) · 843 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
services:
python-dev:
build: .
container_name: python-dev-env
volumes:
# Mount current directory to /app in container
- .:/app
# Preserve installed packages
- python-packages:/usr/local/lib/python3.11/site-packages
ports:
# Map container port 8000 to host port 8000
- "8000:8000"
# Map container port 5000 to host port 5000 (for Flask apps)
- "5000:5000"
# Map container port 8888 to host port 8888 (for Jupyter)
- "8888:8888"
# Map container port 8502 to host port 8502 (for Streamlit)
- "8501:8501"
- "8502:8502"
environment:
- PYTHONPATH=/app
stdin_open: true # Keep STDIN open
tty: true # Allocate a pseudo-TTY
command: /bin/bash # Start with bash shell for interactive development
volumes:
python-packages: