Sign inSign up

javi98/vue-quasar-crud-template

By javi98

Updated over 2 years ago

Docker image multi stage Vue and Quasar Framework aplication api crud template

Image
Languages & frameworks
Web servers
0

985

javi98/vue-quasar-crud-template repository overview

Vue and Quasar Framework aplication api crud template

revive

Docker image multi stage Vue and Quasar Framework aplication api crud template

Github repository: https://github.com/JAVI-CC/vue-quasar-crud-template

Setup
$ git clone https://github.com/JAVI-CC/vue-quasar-crud-template.git
$ cd vue-quasar-crud-template
$ cp .env.example .env.dev
$ cp .env.example .env.prod
$ docker-compose up -d

In case you are using your IDE to develop the application and it odes not detect the files it contains within the vendor folder, you have to copy the files from the node_modules folder of the container to the host machine with the following command.

$ docker compose cp app:/src/node_modules .

Running mode dev:
$ docker compose up
Running mode build:
$ docker compose up -d
$ docker compose exec app quasar build -m pwa

docker-compose.yml
version: '3'
  services:
    app:
      build:
        context: .
        dockerfile: Dockerfile
        target: 'develop-stage'
      image: javi98/vue-quasar-crud-template:1.0.0
      container_name: vue-quasar-crud-template-app
      command: /bin/sh -c "yarn && quasar upgrade -i && quasar dev"
      ports:
        - '9000:9000'
      volumes:
        - '.:/src'
        - /src/node_modules

Once you have the container deployed, you can access http://localhost:9000


docker-compose.prod.yml
version: '3'
  services:
    app.prod:
      build:
        context: .
        dockerfile: Dockerfile
        target: 'prod-pwa-stage'
      image: javi98/vue-quasar-crud-template-prod:1.0.0
      container_name: vue-quasar-crud-template-app-prod
      ports:
        - '85:80'

Once you have the container deployed, you can access http://localhost:85

Tag summary

Content type

Image

Digest

sha256:fa384626d

Size

18.9 MB

Last updated

over 2 years ago

docker pull javi98/vue-quasar-crud-template