-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
53 lines (51 loc) · 1.08 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
41
42
43
44
45
46
47
48
49
50
51
52
53
version: "1.0"
services:
frontend:
container_name: maduchat_frontend
build: frontend
ports:
- 4200:4200
volumes:
- frontend:/frontend
develop:
watch:
- action: sync
path: ./frontend
target: /frontend
- action: rebuild
path: ./frontend/package.json
backend:
container_name: maduchat_backend
depends_on:
- db
environment:
- DATABASE_HOST=maduchat_database
- DATABASE_PASSWORD=maduchat
build: backend
ports:
- 3000:3000
- 3001:3001
volumes:
- backend:/backend
develop:
watch:
- action: sync
path: ./backend
target: /backend
- action: rebuild
path: ./backend/package.json
db:
container_name: maduchat_database
image: mysql
working_dir: /db
volumes:
- database:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: maduchat
MYSQL_DATABASE: maduchat
ports:
- 3306:3306
volumes:
frontend:
backend:
database: