-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
52 lines (49 loc) · 1.16 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
52 lines (49 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
52
services:
# PostgreSQL Database
postgres:
image: postgres:16-alpine
container_name: adryx-postgres-dev
restart: unless-stopped
environment:
POSTGRES_DB: adryx
POSTGRES_USER: adryx
POSTGRES_PASSWORD: adryx_password
ports:
- "5433:5432"
volumes:
- postgres_data_dev:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U adryx"]
interval: 10s
timeout: 5s
retries: 5
# Backend API (Development with hot-reload)
backend:
build:
context: .
dockerfile: apps/backend/Dockerfile.dev
container_name: adryx-backend-dev
restart: unless-stopped
ports:
- "3001:3000"
environment:
NODE_ENV: development
PORT: 3000
DB_HOST: postgres
DB_PORT: 5432
DB_DATABASE: adryx
DB_USERNAME: adryx
DB_PASSWORD: adryx_password
volumes:
- ./apps/backend/src:/app/src
- ./apps/backend/package.json:/app/package.json
depends_on:
postgres:
condition: service_healthy
command: pnpm start:dev
volumes:
postgres_data_dev:
driver: local
networks:
default:
name: adryx-network-dev