Skip to content

Instantly share code, notes, and snippets.

@peccu
Created January 7, 2020 03:28
Show Gist options
  • Save peccu/e14151b6f8b0bb9c656085f60d07c63e to your computer and use it in GitHub Desktop.
Save peccu/e14151b6f8b0bb9c656085f60d07c63e to your computer and use it in GitHub Desktop.
docker-compose for plantuml-editor

docker related files for plantuml-editor

https://github.com/kkeisuke/plantuml-editor

Usage

git clone https://github.com/kkeisuke/plantuml-editor.git
cd plantuml-editor
touch Dockerfile docker-compose.yml
# paste from this gist
docker-compose build && docker-compose up -d && open http://localhost:8080
version: '3.7'
services:
web:
build:
context: .
args:
# set in .env.development
VUE_APP_URL: $VUE_APP_URL
VUE_APP_SERVER: $VUE_APP_SERVER
VUE_APP_CDN: $VUE_APP_CDN
env_file:
- ./.env.development
restart: always
depends_on:
- plantuml
ports:
- "8080:80"
plantuml:
image: plantuml/plantuml-server:tomcat
restart: always
ports:
- "4000:8080"
FROM node:13.5 as build
ARG VUE_APP_CDN
ARG VUE_APP_URL
ARG VUE_APP_SERVER
COPY . /app
WORKDIR /app
RUN npm i && npm run flow-typed
RUN npm run build
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment