-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
38 lines (36 loc) · 1.2 KB
/
compose.dev.yaml
File metadata and controls
38 lines (36 loc) · 1.2 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
# ============================================
# NetWeave — Development Dependencies
# ============================================
# Usage: docker compose -f compose.dev.yaml up -d
#
# Starts PostgreSQL and pgweb for local development.
# Run the backend (cargo run) and frontend (pnpm dev) on the host.
services:
db:
image: postgres:16-alpine
container_name: netweave_db
environment:
POSTGRES_USER: ${DATABASE_USER:-netweave}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD:-securepassword}
POSTGRES_DB: ${DATABASE_NAME:-netweave_db}
ports:
- "${DATABASE_PORT:-5432}:5432"
volumes:
- ./db_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DATABASE_USER:-netweave} -d ${DATABASE_NAME:-netweave_db}"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
pgweb:
image: sosedoff/pgweb
container_name: netweave_pgweb
ports:
- "8081:8081"
environment:
DATABASE_URL: postgres://${DATABASE_USER:-netweave}:${DATABASE_PASSWORD:-securepassword}@db:5432/${DATABASE_NAME:-netweave_db}?sslmode=disable
depends_on:
db:
condition: service_healthy
restart: unless-stopped