Docker image multi stage Vue and Quasar Framework aplication api crud template
985
Docker image multi stage Vue and Quasar Framework aplication api crud template
Github repository: https://github.com/JAVI-CC/vue-quasar-crud-template
$ 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 -dIn 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 .$ docker compose up
$ docker compose up -d
$ docker compose exec app quasar build -m pwa
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_modulesOnce you have the container deployed, you can access http://localhost:9000
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
Content type
Image
Digest
sha256:fa384626d…
Size
18.9 MB
Last updated
over 2 years ago
docker pull javi98/vue-quasar-crud-template