Showing
1 changed file
with
59 additions
and
0 deletions
docker-compose.yml
0 → 100644
1 | +version: "3.7" | ||
2 | +services: | ||
3 | + mysql: | ||
4 | + container_name: mysql | ||
5 | + ports: | ||
6 | + - 3306:3306 | ||
7 | + image: mysql:8.0.19 | ||
8 | + restart: always | ||
9 | + environment: | ||
10 | + MYSQL_DATABASE: $${MYSQL_DATABASE} | ||
11 | + MYSQL_ROOT_PASSWORD: $${MYSQL_ROOT_PASSWORD} | ||
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 | + volumes: | ||
28 | + - /app/prisma | ||
29 | + backend: | ||
30 | + links: | ||
31 | + - mysql | ||
32 | + depends_on: | ||
33 | + - mysql | ||
34 | + - prisma | ||
35 | + container_name: backend | ||
36 | + ports: | ||
37 | + - "4000:4000" | ||
38 | + build: | ||
39 | + context: back | ||
40 | + dockerfile: Dockerfile | ||
41 | + environment: | ||
42 | + MYSQL_URL: $${MYSQL_URL} | ||
43 | + FRONTEND_URL: $${FRONTEND_URL} | ||
44 | + volumes: | ||
45 | + - ./back:/app | ||
46 | + - ./back/node_modules:/app/node_modules | ||
47 | + - ./back/prisma:/app/prisma | ||
48 | + frontend: | ||
49 | + container_name: frontend | ||
50 | + ports: | ||
51 | + - "3000:3000" | ||
52 | + build: | ||
53 | + context: front | ||
54 | + dockerfile: Dockerfile | ||
55 | + environment: | ||
56 | + BACKEND_URL: $${BACKEND_URL} | ||
57 | + volumes: | ||
58 | + - ./front:/app | ||
59 | + - ./front/node_modules:/app/node_modules |
-
Please register or login to post a comment