-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
37 lines (36 loc) · 909 Bytes
/
Copy pathdocker-compose.dev.yml
File metadata and controls
37 lines (36 loc) · 909 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
services:
web:
build:
context: .
dockerfile: apps/web/Dockerfile.dev
ports:
- '3001:3001'
volumes:
- ./apps/web:/app/apps/web
- ./packages:/app/packages
- /app/node_modules
- /app/apps/web/node_modules
environment:
- VITE_API_URL=${VITE_API_URL}
depends_on:
- api
api:
build:
context: .
dockerfile: apps/api/Dockerfile.dev
ports:
- '3000:3000'
volumes:
- ./apps/api:/app/apps/api
- ./packages/api/src:/app/packages/api/src
- /app/node_modules
- /app/apps/api/node_modules
environment:
DATABASE_URL: postgresql://postgres:${DB_PASSWORD}@db:5432/mydb
NODE_ENV: ${NODE_ENV}
GOOGLE_CLIENT_ID: ${GOOGLE_CLIENT_ID}
GOOGLE_CLIENT_SECRET: ${GOOGLE_CLIENT_SECRET}
JWT_SECRET: ${JWT_SECRET}
depends_on:
db:
condition: service_healthy