Sign inSign up

javi98/vue-quasar-juegos-api

By javi98

•Updated over 2 years ago

Docker image multi stage Vue and Quasar Framework aplication juegos api

Image
Languages & frameworks
Web servers
0

1.9K

javi98/vue-quasar-juegos-api repository overview

⁠Vue and Quasar Framework aplication juegos api

revive

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

Github repository: https://github.com/JAVI-CC/VUE3-API-client⁠

⁠Setup
$ git clone https://github.com/JAVI-CC/VUE3-API-client.git
$ cd VUE3-API-client
$ cp development.env.example development.env
$ cp production.env.example production.env
$ 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-juegos-api:1.0.0
      container_name: vue-quasar-juegos-api-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-juegos-api-prod:1.0.0
      container_name: vue-quasar-juegos-api-app-prod
      ports:
        - '85:80'

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

Tag summary

Content type

Image

Digest

sha256:a6dfef40b…

Size

23.6 MB

Last updated

over 2 years ago

docker pull javi98/vue-quasar-juegos-api