-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose-apps.yml
97 lines (97 loc) · 2.19 KB
/
docker-compose-apps.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: '3'
services:
functions_base:
build: ./deploy/docker/functions-base
command: echo "mtc-functions-base built"
dbmigration:
build:
context: ./db
dockerfile: dev.Dockerfile
container_name: mtc_db_migrations
volumes:
- "./:/mtc"
environment:
SQL_SERVER: 'sqldb'
SQL_PORT: '1433'
SQL_TRUST_SERVER_CERTIFICATE: 'true'
SQL_TECH_SUPPORT_USER_PASSWORD: 'Mtc-D3v.5ql_S3rv3r'
depends_on:
- sqldb
func_throttled:
build:
context: ./func-throttled
dockerfile: dev.Dockerfile
container_name: "mtc_func_throttled"
ports:
- 7073:7073
volumes:
- "./:/mtc"
environment:
SQL_SERVER: 'sqldb'
REDIS_HOST: 'redis'
depends_on:
- sqldb
- dbmigration
- redis
command: ["./wait-for-db.sh", "sqldb", "yarn", "start"]
func_consumption:
build:
context: ./func-consumption
dockerfile: dev.Dockerfile
container_name: "mtc_func_consumption"
ports:
- 7071:7071
volumes:
- "./:/mtc"
environment:
SQL_SERVER: 'sqldb'
REDIS_HOST: 'redis'
depends_on:
- sqldb
- dbmigration
- redis
command: ["./wait-for-db.sh", "sqldb", "yarn", "start"]
admin_dev:
build:
context: ./admin
dockerfile: dev.Dockerfile
container_name: "mtc_admin_dev"
ports:
- 3001:3001
volumes:
- "./:/mtc"
environment:
SQL_SERVER: 'sqldb'
REDIS_HOST: 'redis'
depends_on:
- sqldb
- dbmigration
- redis
restart: always
command: ["./wait-for-db.sh", "sqldb", "./docker-start-dev.sh"]
spa_dev:
build:
context: ./pupil-spa
dockerfile: dev.Dockerfile
container_name: "mtc_spa_dev"
ports:
- 4200:4200
volumes:
- "./:/mtc"
environment:
REDIS_HOST: 'redis'
command: ["./docker-start-dev.sh"]
pupil_api:
build:
context: ./pupil-api
dockerfile: dev.Dockerfile
container_name: "mtc_pupil_api_dev"
ports:
- 3003:3003
environment:
REDIS_HOST: 'redis'
depends_on:
- redis
volumes:
- "./:/mtc"
command: ["./docker-start-dev.sh"]