-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (34 loc) · 991 Bytes
/
docker-compose.yml
File metadata and controls
34 lines (34 loc) · 991 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
services:
db:
image: postgres:16-alpine
ports:
- "5433:5432" # Changed from 5432:5432 to avoid port conflict
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=web-dev-tools
volumes:
- db_data:/var/lib/postgresql/data
restart: always
app:
build:
context: .
command: npm run dev
ports:
- "3000:3000"
user: "${UID:-1000}:${GID:-1000}"
environment:
- NODE_ENV=development
- DATABASE_URL=postgres://postgres:postgres@db:5432/web-dev-tools
- AUTH_SECRET=${AUTH_SECRET}
- AUTH_URL=${AUTH_URL}
- AUTH_RESEND_KEY=${AUTH_RESEND_KEY}
- MAILER_ADDRESS=${MAILER_ADDRESS}
- RAPID_KEY=${RAPID_KEY}
- WATCHPACK_POLLING=true # Enable polling as a hopeful fix for the hot-reloading issues (but maybe it makes things slow)
volumes:
- .:/app # Mount current directory to /app in container
depends_on:
- db
volumes:
db_data: