-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-azure.yml
61 lines (60 loc) · 1.19 KB
/
docker-azure.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
version: '3.3'
services:
angular:
build:
context: turing-bank-front-end
target: server
restart: always
ports:
- "4200:80"
networks:
- frontend
labels:
- traefik.port=80
- traefik.frontend.rule=PathPrefix:/
nest:
build: turing-bank-back-end
restart: always
volumes:
- ./turing-bank-back-end/src:/usr/src/app/src
environment:
PORT : 80
labels:
- traefik.port=80
- traefik.frontend.rule=PathPrefix:/api,/docs
ports:
- "3000:80"
depends_on:
- database
networks:
- backend
database:
image: mongo
restart: always
volumes:
- data-db:/data/db
networks:
- backend
proxy:
image: traefik:1.7-alpine
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- backend
- frontend
ports:
- "80:80"
command:
- --docker
- --docker.domain=traefik
- --docker.watch
- --api
- --defaultentrypoints=http,https
labels:
- traefik.port=8080
- traefik.frontend.rule=Host:traefik.turingbank.eastus.cloudapp.azure.com
volumes:
data-db:
networks:
backend:
frontend: