-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
57 lines (53 loc) · 1.35 KB
/
docker-compose.dev.yml
File metadata and controls
57 lines (53 loc) · 1.35 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
52
53
54
55
56
57
services:
postgres:
image: postgres:16
container_name: app-postgres
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: device_capabilities
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d device_capabilities"]
interval: 5s
timeout: 5s
retries: 5
backend:
container_name: app-backend
build:
context: .
dockerfile: ./docker/Dockerfile.backend.dev
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
volumes:
- ./packages/backend:/app/packages/backend
env_file:
- ./packages/backend/.env
environment:
# Override localhost for Docker networking
DATABASE_URL: postgres://postgres:postgres@postgres:5432/device_capabilities
ports:
- "3000:3000"
frontend:
container_name: app-frontend
build:
context: .
dockerfile: ./docker/Dockerfile.frontend.dev
restart: unless-stopped
volumes:
- ./packages/frontend:/app/packages/frontend
- /app/packages/frontend/node_modules
environment:
VITE_API_URL: http://localhost:3000
ports:
- "5173:5173"
depends_on:
- backend
volumes:
postgres_data: