forked from cds-snc/ircc_scheduler
/
dev.yml
40 lines (38 loc) · 936 Bytes
/
dev.yml
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
version: '2'
services:
proxy:
image: traefik
command: --docker --docker.domain=docker.localhost --logLevel=DEBUG --defaultentrypoints="Name:http Address::80" --defaultentrypoints='Name:ui Address::3000 Redirect.EntryPoint:http'
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
ui:
ports:
- "3000"
build:
context: ./ui
dockerfile: Dockerfile
labels:
- "traefik.backend=ui"
- "traefik.frontend.rule=PathPrefix:/"
- "traefik.port=3000"
volumes:
- ./ui:/app
command: yarn start
api:
environment:
- IRCC_RECEIVING_ADDRESS
- SENDGRID_API_KEY
build:
context: ./api
dockerfile: Dockerfile
ports:
- "3001"
volumes:
- ./api:/app
command: yarn start
labels:
- "traefik.backend=api"
- "traefik.frontend.rule=PathPrefix:/graphql"
- "traefik.port=3001"