New addition: Online SVG code editor

This commit is contained in:
2023-09-23 22:21:42 +02:00
parent 16b29be29c
commit b256c97357
2 changed files with 22 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
# Uncomment and change the following variables if you want to use them.
#RESTART=unless-stopped
#ONLINESVGCODEEDITOR_CONTAINER_NAME=OnlineSVGcodeeditor
#ONLINESVGCODEEDITOR_TAG=latest
#ONLINESVGCODEEDITOR_PORT=3000
+17
View File
@@ -0,0 +1,17 @@
services:
# Online SVG code editor
onlinesvgcodeeditor:
container_name: ${ONLINESVGCODEEDITOR_CONTAINER_NAME:-OnlineSVGcodeeditor}
image: node:${ONLINESVGCODEEDITOR_TAG:-latest}
restart: ${RESTART:-unless-stopped}
command: >
sh -c "git clone https://github.com/nbelyh/editsvgcode.git && \
cd editsvgcode && \
npm install && \
npm run build && \
npm install -g serve && \
serve -s dist"
healthcheck:
test: curl -f http://localhost:3000/ || exit 1
ports:
- ${ONLINESVGCODEEDITOR_PORT:-3000}:3000