-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (45 loc) · 917 Bytes
/
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: '3'
services:
nginx:
restart: always
image: nginx:latest
container_name: nginx_con
build:
dockerfile: Dockerfile.dev
context: ./nginx
ports:
- "3050:3051"
depends_on:
- backend
- frontend
- mysqldb
frontend:
build:
dockerfile: Dockerfile.dev
context: ./client
container_name: frontend_con
volumes:
- "/app/node_modules"
- "./client:/app"
command: npm run start
tty: true
backend:
build:
dockerfile: Dockerfile.dev
context: ./server
container_name: backend_con
volumes:
- '/app/node_modules'
- './server:/app'
env_file:
- ./server/.env.local
mysqldb:
image: mysql:5.7
restart: always
container_name: mysql_con
volumes:
- ./dbdata:/var/lib/mysql
env_file:
- ./config/.env
ports:
- 3306:3306