sdy

update docker compose

...@@ -20,7 +20,7 @@ services: ...@@ -20,7 +20,7 @@ services:
20 ports: 20 ports:
21 - "5555:5555" 21 - "5555:5555"
22 build: 22 build:
23 - context: back/prisma 23 + context: ./back/prisma
24 dockerfile: Dockerfile 24 dockerfile: Dockerfile
25 environment: 25 environment:
26 MYSQL_URL: ${MYSQL_URL} 26 MYSQL_URL: ${MYSQL_URL}
...@@ -37,22 +37,22 @@ services: ...@@ -37,22 +37,22 @@ services:
37 ports: 37 ports:
38 - "4000:4000" 38 - "4000:4000"
39 build: 39 build:
40 - context: back 40 + context: ./back
41 dockerfile: Dockerfile 41 dockerfile: Dockerfile
42 environment: 42 environment:
43 MYSQL_URL: ${MYSQL_URL} 43 MYSQL_URL: ${MYSQL_URL}
44 FRONTEND_URL: ${FRONTEND_URL} 44 FRONTEND_URL: ${FRONTEND_URL}
45 volumes: 45 volumes:
46 - - ./back:/app 46 + - ./back:/usr/src/app
47 - - ./back/node_modules:/app/node_modules 47 + - ./back/node_modules:/usr/src/app/node_modules
48 - - ./back/prisma:/app/prisma 48 + - ./back/prisma:/usr/src/app/prisma
49 frontend: 49 frontend:
50 container_name: frontend 50 container_name: frontend
51 ports: 51 ports:
52 - "3000:3000" 52 - "3000:3000"
53 tty: "true" 53 tty: "true"
54 build: 54 build:
55 - context: front 55 + context: ./front
56 dockerfile: Dockerfile 56 dockerfile: Dockerfile
57 command: npm start 57 command: npm start
58 environment: 58 environment:
......