minsung

Merge branch 'master' of https://bitbucket.org/vel1024/capstone

1 +version: "3.7"
2 +services:
3 + mysql:
4 + image: mysql:8.0.19
5 + container_name: mysql
6 + ports:
7 + - 3306:3306
8 + restart: always
9 + environment:
10 + MYSQL_DATABASE: prisma
11 + MYSQL_ROOT_PASSWORD: prisma
12 + volumes:
13 + - /var/lib/mysql
14 + prisma:
15 + links:
16 + - mysql
17 + depends_on:
18 + - mysql
19 + container_name: prisma
20 + ports:
21 + - "5555:5555"
22 + build:
23 + context: ./back/prisma
24 + dockerfile: Dockerfile
25 + environment:
26 + MYSQL_URL: ${MYSQL_URL}
27 + MYSQL_DATABASE: prisma
28 + MYSQL_ROOT_PASSWORD: prisma
29 + volumes:
30 + - /app/prisma
31 + backend:
32 + links:
33 + - mysql
34 + depends_on:
35 + - mysql
36 + container_name: backend
37 + ports:
38 + - "4000:4000"
39 + build:
40 + context: ./back
41 + dockerfile: Dockerfile
42 + environment:
43 + MYSQL_URL: ${MYSQL_URL}
44 + FRONTEND_URL: ${FRONTEND_URL}
45 + volumes:
46 + - ./back:/usr/src/app
47 + - ./back/node_modules:/usr/src/app/node_modules
48 + - ./back/prisma:/usr/src/app/prisma
49 + frontend:
50 + container_name: frontend
51 + ports:
52 + - "3000:3000"
53 + tty: "true"
54 + build:
55 + context: ./front
56 + dockerfile: Dockerfile
57 + command: npm start
58 + environment:
59 + - NODE_ENV=development
60 + - CHOKIDAR_USEPOLLING=true
61 + - BACKEND_URL=${BACKEND_URL}
62 + volumes:
63 + - ./front:/usr/src/app