forked from saintramon/the-first-se7en
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
37 lines (34 loc) · 749 Bytes
/
docker-compose.yaml
File metadata and controls
37 lines (34 loc) · 749 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
services:
client:
build:
context: ./client
dockerfile: Dockerfile.client
volumes:
- ./client:/app
- node_modules:/app/node_modules
ports:
- "3000:3000"
server:
build:
context: ./server
dockerfile: Dockerfile
volumes:
- ./server:/var/www/html
#- node_modules:/var/www/html/node_modules
ports:
- "8080:8080"
depends_on:
- database
database:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_DATABASE: the-first-se7en
volumes:
- ./mysql-data:/var/lib/mysql
- ./the-first-se7en.sql:/docker-entrypoint-initdb.d/the-first-se7en.sql
ports:
- "3306:3306"
volumes:
mysql-data:
node_modules: