-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (44 loc) · 826 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
49 lines (44 loc) · 826 Bytes
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
version: '3.7'
services:
db:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: "1234"
# MYSQL_USER: "root"
# MYSQL_PASSWORD: "1234"
MYSQL_DATABASE: "capstone"
volumes:
- "./sql/:/docker-entrypoint-initdb.d/"
ports:
- 3306:3306
expose:
- 3306
container_name: my_db
frontend:
container_name: my-front
build:
context: frontend
dockerfile: front.dev.Dockerfile
expose:
- 8080
ports:
- 8080:8080
volumes:
- ./frontend:/app
backend:
container_name: my-back
restart: always
build:
context: backend
dockerfile: back.dev.Dockerfile
expose:
- 5000
ports:
- 5000:5000
volumes:
- ./backend:/www
links:
- db
depends_on:
- frontend
- db