version: "3"
services:
latex:
image: 'ghcr.io/peaceiris/latex:v1.1.0-full'
container_name: 'latex_v1.1.0'
volumes:
- ${PWD}:/work
environment:
- DISPLAY=docker.for.mac.localhost:0
stdin_open: true
tty: true
working_dir: /work
command: latexmk -pdf -pvc
# .latexmkrc
@default_files = ('paper.tex');
docker-compose up
paper.pdf
will be generated.