https://github.com/marekaf/docker-lstlisting
LaTeX lstlisting styles for docker - Dockerfile, docker-compose v.1 and v.2
https://github.com/marekaf/docker-lstlisting
Last synced: about 1 year ago
JSON representation
LaTeX lstlisting styles for docker - Dockerfile, docker-compose v.1 and v.2
- Host: GitHub
- URL: https://github.com/marekaf/docker-lstlisting
- Owner: marekaf
- Created: 2016-05-07T12:46:35.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-12-24T12:39:22.000Z (over 2 years ago)
- Last Synced: 2025-04-17T11:11:04.335Z (over 1 year ago)
- Language: TeX
- Size: 3.91 KB
- Stars: 23
- Watchers: 3
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-lstlisting
How to use it:
```
\begin{lstlisting}[language=docker-compose-2,caption={Example docker-compose.yml},breaklines=true,label={code:compose}]
version: '2'
services:
web:
build: .
ports:
- "5000:5000"
volumes:
- .:/code
- logvolume01:/var/log
links:
- redis
redis:
image: redis
volumes:
logvolume01: {}
\end{lstlisting}
```