forked from micado-eu/pa_application
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
49 lines (44 loc) · 1.1 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: '3.7'
services:
pa_app_dev:
image: micadoproject/quasar:1.0.3
stdin_open: true
tty: true
labels:
- "traefik.enable=true"
- "traefik.http.routers.migrants_app_dev.rule=Host(`${PA_HOSTNAME}`)"
- "traefik.http.routers.migrants_app_dev.entrypoints=web"
- "traefik.http.services.migrants_app_dev.loadbalancer.server.port=8080"
volumes:
- type: volume
source: pa_app
target: /code
ports:
- "8000:8000"
- "8080:8080"
command: /bin/sh -c "npm install && quasar dev"
networks:
- micado_net
balancer:
image: traefik:v2.1
ports:
- "80:80"
- "8081:8080"
- "443:443" # The HTTPS port
volumes:
- ./traefik/traefik.toml:/etc/traefik/traefik.toml
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- ./traefik-acme:/etc/traefik/acme
networks:
- micado_net
volumes:
pa_app:
driver: local
driver_opts:
type: none
# device is the path in the host that has to be absolute
device: $PWD/app
o: bind
networks:
micado_net:
driver: bridge