-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
40 lines (38 loc) · 877 Bytes
/
docker-compose.dev.yml
File metadata and controls
40 lines (38 loc) · 877 Bytes
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
version: "3.9"
services:
db:
image: postgres:15
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: mydb
volumes:
- pgdata:/var/lib/postgresql/data
ports:
- "5432:5432"
backend:
build:
context: ./apps/backend
dockerfile: Dockerfile.dev
ports:
- "3000:3000"
depends_on:
- db
working_dir: /app
environment:
DATABASE_URL: postgresql://postgres:postgres@db:5432/mydb
NODE_ENV: development
command: sh -c "npx prisma migrate dev --name init && npm run script:populateWords:dev && npm run dev"
frontend:
build:
context: ./apps/frontend
dockerfile: Dockerfile.dev
ports:
- "5173:5173"
volumes:
- ./apps/frontend:/app
- /app/node_modules
environment:
- NODE_ENV=development
volumes:
pgdata: