-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
97 lines (90 loc) · 3.97 KB
/
Copy pathdocker-compose.yml
File metadata and controls
97 lines (90 loc) · 3.97 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# ─────────────────────────────────────────────────────────────────────────────
# CivicLens — Docker Compose (Development)
# ─────────────────────────────────────────────────────────────────────────────
# Usage:
# docker compose up -d – start all services in the background
# docker compose up api – start only the API (and its dependencies)
# docker compose logs -f api – tail API logs
# docker compose down -v – stop and remove containers + volumes
# ─────────────────────────────────────────────────────────────────────────────
services:
# ─── Qdrant Vector Database ───────────────────────────────────────────────────
qdrant:
image: qdrant/qdrant:latest
container_name: civiclens_qdrant_prod
restart: unless-stopped
ports:
- "6333:6333"
- "6334:6334"
volumes:
- qdrant_data:/qdrant/storage
# ─── PostgreSQL ─────────────────────────────────────────────────────────────
postgres:
image: postgis/postgis:16-3.4-alpine
container_name: civiclens_postgres
restart: unless-stopped
environment:
POSTGRES_USER: civiclens
POSTGRES_PASSWORD: password
POSTGRES_DB: civiclens_dev
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U civiclens -d civiclens_dev"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
# ─── pgAdmin ────────────────────────────────────────────────────────────────
pgadmin:
container_name: civiclens_pgadmin_prod
image: dpage/pgadmin4
restart: unless-stopped
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:-admin@civiclens.com}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
PGADMIN_CONFIG_SERVER_MODE: 'False'
ports:
- "${PGADMIN_PORT:-5050}:80"
depends_on:
postgres:
condition: service_healthy
volumes:
- ./pgadmin-servers.json:/pgadmin4/servers.json:ro
# ─── Backend API (Go / Echo) ─────────────────────────────────────────────
api:
build:
context: ./backend-api
dockerfile: Dockerfile
container_name: civiclens_api
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
PORT: "8080"
ENVIRONMENT: development
DATABASE_URL: postgres://civiclens:password@postgres:5432/civiclens_dev?sslmode=disable
JWT_SECRET: dev-only-jwt-secret-change-in-production
ports:
- "8080:8080"
# Admin Dashboard (Next.js)
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: civiclens_frontend
restart: unless-stopped
depends_on:
- api
environment:
NEXT_PUBLIC_API_URL: http://localhost:8080/api/v1
ports:
- "3000:3000"
# ─── Named Volumes ──────────────────────────────────────────────────────────
volumes:
postgres_data:
qdrant_data:
driver: local