Help us understand the problem. What is going on with this article?

Vue+docker-compose 環境構築

環境構築 メモ

Dockerfile
FROM node:8-alpine

WORKDIR /app

RUN apk update && \
    npm install -g npm @vue/cli &&\
    npm install yarn  #今回はyarnを使用
docker-compose.yml
version: '3'
services:
  vue_app:
    build: ./docker
    ports:
      - 9000:9000
    volumes:
      - ./app:/app
    stdin_open: true
    tty: true
    command: /bin/sh
Workspaceにて
$ docker-compose build #build
$ docker-compose up -d
$ docker-compose exec {アプリ名} sh
# yarm add vue
# yarn global add @vue/cli
# vue ui -H 0.0.0.0 -p 9000  # cliのGUIツールを起動
                             #localhostではアクセスできないから注意

ブラウザで ”http://localhost:9000” と入力し表示できれば成功

参考記事 
dockerについて
vueの設定について
cliの使い方について

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away