Files
docker-compose-collection/onlinesvgcodeeditor/compose.yml
T

18 lines
570 B
YAML

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