-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (35 loc) · 925 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
37 lines (35 loc) · 925 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
# docker-compose.yml
version: "3.8"
services:
app:
build:
context: .
target: development
dockerfile: Dockerfile
container_name: movie-api-dev
restart: unless-stopped
ports:
- "${PORT:-3000}:3000"
env_file:
- .env
volumes:
- ./src:/app/src # Hot reload source
- ./prisma:/app/prisma # Hot reload prisma
- ./logs:/app/logs
- /app/node_modules # Don't override node_modules
# Remove depends_on - no local postgres needed for Neon!
healthcheck:
test:
[
"CMD",
"node",
"-e",
"require('http').get('http://localhost:5000/health', (r) => process.exit(r.statusCode === 200 ? 0 : 1))",
]
interval: 30s
timeout: 3s
retries: 3
start_period: 40s
# Remove networks - not needed for single service
command: npm start
# Remove networks section - not needed