-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
46 lines (46 loc) · 1.08 KB
/
docker-compose.dev.yml
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
services:
postgres_db:
build:
context: ./server
dockerfile: ./docker/postgres/Dockerfile
args:
- NODE_ENV=development
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=be_productive
ports:
- "5432:5432"
network_mode: host
server:
build:
context: ./server
dockerfile: ./docker/nest/Dockerfile
args:
- NODE_ENV=development
environment:
- COOKIES_EXPIRATION=0
- DATABASE_URL=postgres://postgres:postgres@localhost:5432/be_productive
- SECRET=secret
volumes:
- ./server:/app
- /app/node_modules
command: pnpm start:dev
depends_on:
- postgres_db
ports:
- "3000:3000"
network_mode: host
web-client:
build:
args:
- NODE_ENV=development
- VITE_BACKEND_URL=http://localhost:3000
context: ./web-client
dockerfile: ./Dockerfile
volumes:
- ./web-client:/app
- /app/node_modules
command: pnpm dev --host --port 4173
ports:
- "4173:4173"
network_mode: host