-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
52 lines (52 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
50
51
52
version: '3.7'
services:
api:
image: node:lts
container_name: k-app-api
ports:
- 3000:3000
volumes:
- .:/k-app
depends_on:
- mysql
- mongo
entrypoint:
- /bin/sh
- -c
- |
cd k-app
echo "Install dependencies with yarn"
yarn
yarn workspace k-app-server run dev:back
front:
image: node:lts
container_name: k-app-front
ports:
- "4200:4200"
volumes:
- .:/k-app
depends_on:
- api
entrypoint:
- /bin/sh
- -c
- |
cd k-app
echo "Install depencies with yarn"
yarn
echo "Lunching dev web server with ng cli"
yarn workspace k-app-client run start
mysql:
container_name: k-app-mysql
image: mysql:5.7.22
ports:
- "3306:3306"
command: --lower_case_table_names=1 # https://gist.github.com/feltnerm/bb6e23f531803896ca1e#gistcomment-2693967
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: kapp
mongo:
container_name: k-app-mongo
image: bitnami/mongodb
ports:
- "27017:27017"