Skip to content

Commit d25fdbb

Browse files
committed
Enhance Docker configuration for hot reloading with MkDocs
1 parent 5addf51 commit d25fdbb

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docker-compose.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
services:
22
app:
33
image: python:3.14-slim
4-
command: mkdocs serve -a 0.0.0.0:8000
4+
command: python -m mkdocs serve -a 0.0.0.0:8000 --watch-theme --livereload
55
entrypoint: /app/docker-entrypoint.sh
66
working_dir: /app
77
ports:
88
- 8000:8000
99
volumes:
1010
- .:/app
11-
- python-packages:/usr/local/lib/python3.14/site-packages/
11+
- pip-cache:/root/.cache/pip
12+
environment:
13+
- PYTHONUNBUFFERED=1
14+
stdin_open: true
15+
tty: true
1216

1317
volumes:
14-
python-packages:
18+
pip-cache:

0 commit comments

Comments
 (0)