docmachine-containers/docker-compose.yml
Glenn Y. Rolland 6a2abc6235 feat(docker): modularize Docker setup for docs and slides
Introduces distinct Dockerfiles for documentation and slide projects, enhancing modularity and build efficiency. The previous monolithic structure was less flexible and caused longer build times.

- Added `DOCMACHINE_DOCS_ENABLE` and `DOCMACHINE_SLIDES_ENABLE` env variables to toggle features.
- Created `docker/Dockerfile.docs` for documentation builds, including necessary tools and dependencies.
- Created `docker/Dockerfile.slides` for slide builds to streamline setup.
- Updated main Dockerfile to include `python-is-python3` for compatibility, removing redundant symlinks.
- Enhanced LaTeX tools by adding `texlive-xetex` and extra fonts for improved PDF output.
2025-03-27 10:14:38 +01:00

35 lines
590 B
YAML

---
version: "3.4"
services:
# app:
# build:
# context: .
# dockerfile: docker/Dockerfile
# image: glenux/teaching-boilerplate
# environment: {}
# ports:
# - 5100:5100
# - 5200:5200
slides:
build:
context: .
dockerfile: docker/Dockerfile.slides
image: glenux/docmachine-slides:latest
environment: {}
ports:
- 5200:5200
docs:
build:
context: .
dockerfile: docker/Dockerfile.docs
image: glenux/docmachine-docs:latest
environment: {}
ports:
- 5100:5100
# proxy:
#