First commit
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
|||||||
|
# Start your image with a node base image
|
||||||
|
FROM node:22-alpine
|
||||||
|
|
||||||
|
RUN npm install -g marp-ui
|
||||||
|
|
||||||
|
ADD config.json /data/config.json
|
||||||
|
VOLUME /data
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
|
||||||
|
CMD [ "marp-ui" ]
|
||||||
@@ -1,2 +1,25 @@
|
|||||||
# marp-ui-docker
|
# marp-ui-docker
|
||||||
|
|
||||||
|
This is a simple Docker container for running [marp-ui](https://codeberg.org/ric_harvey/marp-ui).
|
||||||
|
|
||||||
|
** Warning **
|
||||||
|
Run marp-ui only in a local environment or behind some authentication system, eg. using a reverse
|
||||||
|
proxy with authentication function!
|
||||||
|
|
||||||
|
marp-ui does not provide any form of authentication by itself. It is a single-user system that enables
|
||||||
|
anyone who accesses it to see/edit/use all documents that are stored there.
|
||||||
|
|
||||||
|
## Create container
|
||||||
|
|
||||||
|
Run `docker build -t marp-ui .` to build the image locally.
|
||||||
|
marp-ui will be installed using npm into the image.
|
||||||
|
|
||||||
|
Using `docker push <Container-Registry>/marp-ui:latest`, the image can be pushed to a
|
||||||
|
container registry.
|
||||||
|
|
||||||
|
## Docker Compose
|
||||||
|
|
||||||
|
A example `docker-compose.yaml` is provided for running marp-ui using marp-ui from my container
|
||||||
|
registry.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+12
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"storagePath": "/data",
|
||||||
|
"autoSaveInterval": 30,
|
||||||
|
"preferredBrowser": "auto",
|
||||||
|
"defaultTheme": "default",
|
||||||
|
"mcpEnabled": false,
|
||||||
|
"editor": {
|
||||||
|
"fontSize": 14,
|
||||||
|
"tabSize": 2,
|
||||||
|
"wordWrap": true
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
services:
|
||||||
|
marp-ui:
|
||||||
|
image: git.imzadi.de/acn/marp-ui:latest
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 3000:3000
|
||||||
|
volumes:
|
||||||
|
- marp-ui:/data
|
||||||
|
|
||||||
Reference in New Issue
Block a user