-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
52 lines (48 loc) · 1019 Bytes
/
docker-compose.yaml
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
version: "3.8"
services:
client:
image: node:lts
working_dir: /app
volumes:
- ./client:/app
command: >
sh -c "npm install && npm run serve"
ports:
- "8080:8080"
networks:
- app-network
server:
image: node:lts
working_dir: /app
volumes:
- ./server:/app
env_file:
- ./.env.server
environment:
- NODE_ENV=development
command:
[
"sh",
"-c",
"npm install -g [email protected] && npm install && npx prisma migrate dev --name init && npm install typescript -g && npm run seed && npm run dev",
]
ports:
- "3000:3000"
depends_on:
- database
networks:
- app-network
database:
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: fastify-vue-fullstack-project
MYSQL_USER: abuuer
MYSQL_PASSWORD: password
ports:
- "3307:3306"
networks:
- app-network
networks:
app-network:
driver: bridge