Files
up-mkdocs-docker/README.md
2026-02-24 23:45:03 +03:00

34 lines
872 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# up-mkdocs-docker
#### 1. Создай docker-compose.yml
В корне проекта создай файл со следующим содержимым:
```yaml
version: '3.8'
services:
mkdocs:
image: squidfunk/mkdocs-material # Самый популярный и красивый движок
ports:
- "8000:8000"
volumes:
- .:/docs
command: serve -a 0.0.0.0:8000
```
#### 2. Подготовь структуру
Если у тебя ещё нет контента, создай папку docs и файл настроек:
- Папка `docs/` — здесь лежат твои `.md` файлы (создай там `index.md`).
- Файл `mkdocs.yml` в корне:
```yaml
site_name: My Awesome Docs
theme: material
```
#### 3. Запуск
Просто пропиши в терминале:
```bash
docker compose up -d
```