Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ Hosts:

- quasar.traefik.me

## Download

```sh
git clone git@github.com:koromerzhin/template-quasar.git template-quasar
cd template-quasar
git submodule update --init
```

## Install

``` sh
Expand Down
6 changes: 3 additions & 3 deletions apps/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions apps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"author": "koromerzhin <308012+koromerzhin@users.noreply.github.com>",
"private": true,
"scripts": {
"start": "quasar dev",
"build": "quasar build",
"lint": "eslint --ext .js,.vue ./",
"test": "echo \"No test specified\" && exit 0"
},
Expand Down
19 changes: 7 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,11 @@ networks:
driver: overlay
attachable: true
services:
exec:
image: koromerzhin/nodejs:1.1.3-quasar
volumes:
- ${PWD}/apps:/app
command: sh -c "npm install"
deploy:
restart_policy:
condition: none
labels:
- "traefik.enable=false"
www:
image: koromerzhin/nodejs:1.1.3-quasar
image: node:15.14.0
working_dir: /app
command: >
sh -c "npm install -g @quasar/cli@1.2.2 && npm install && npm run start"
volumes:
- ${PWD}/apps:/app
networks:
Expand All @@ -26,5 +19,7 @@ services:
deploy:
labels:
- "traefik.enable=true"
- "traefik.http.routers.quasar.rule=HostRegexp(`quasar.traefik.me`, `quasar.{ip:.*}.traefik.me`)"
- "traefik.http.routers.quasar.rule=Host(`quasar.traefik.me`)"
- "traefik.http.routers.quasar-tls.tls.domains[0].main=quasar.traefik.me"
- "traefik.http.routers.quasar.tls=true"
- "traefik.http.services.quasar.loadbalancer.server.port=80"