-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
51 lines (48 loc) · 1.16 KB
/
docker-compose.dev.yml
File metadata and controls
51 lines (48 loc) · 1.16 KB
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
47
48
49
50
51
version: '3.8'
services:
# Neon Local proxy for development
neon-local:
image: neondatabase/neon_local:latest
container_name: acquisitions-neon-local
ports:
- '5432:5432'
env_file:
- .env.development
volumes:
# Persist branch metadata per git branch (optional)
- ./.neon_local/:/tmp/.neon_local
- ./.git/HEAD:/tmp/.git/HEAD:ro,consistent
healthcheck:
test: ['CMD', 'pg_isready', '-h', 'localhost', '-p', '5432', '-U', 'neon']
interval: 5s
timeout: 3s
retries: 5
start_period: 10s
networks:
- acquisitions-dev
# Node.js application
app:
build:
context: .
dockerfile: Dockerfile
target: development
container_name: acquisitions-app-dev
ports:
- '${PORT:-3000}:3000'
env_file:
- .env.development
volumes:
# Mount source code for development hot-reload
- .:/app
- /app/node_modules
# Mount logs directory
- ./logs:/app/logs
depends_on:
neon-local:
condition: service_healthy
networks:
- acquisitions-dev
restart: unless-stopped
networks:
acquisitions-dev:
driver: bridge