forked from CRICDatabase/searchable-image-database
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
40 lines (37 loc) · 1 KB
/
docker-compose.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
version: "3.7"
services:
# Web service layer
node:
build:
context: backend
command: nodemon ./src/server.js
ports:
- "3000:3000"
volumes:
- "./backend:/opt/cric/backend"
# Anonymous volume to avoid overwritten by the mounting of the host directory at runtime.
- "/opt/cric/backend/node_modules"
# Data persistence service layer
db:
image: mysql:5.7.20
volumes:
- "db_data:/var/lib/mysql"
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=123.456
- MYSQL_DATABASE=cric
# Application service layer
angular:
build:
context: frontend
# Need to tell the built in development server to bind to the unspecified IP address
command: ng serve --host 0.0.0.0 --port 4200
ports:
- "8080:4200"
volumes:
- "./frontend:/opt/cric/frontend"
# Anonymous volume to avoid overwritten by the mounting of the host directory at runtime.
- "/opt/cric/frontend/node_modules"
volumes:
db_data: