forked from MiloChiang/paypol-protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (37 loc) · 1.01 KB
/
docker-compose.yml
File metadata and controls
41 lines (37 loc) · 1.01 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
version: '3.8'
# PayPol Protocol — Docker Infrastructure
# Usage:
# docker-compose up -d # Start PostgreSQL + Adminer
# cd apps/dashboard
# npx prisma db push # Create/sync all Prisma tables
# npx tsx prisma/seed-agents.ts # Seed 24 marketplace agents
services:
# 1. PostgreSQL: Primary database for all PayPol data (Prisma ORM)
db:
image: postgres:16-alpine
container_name: paypol-db
restart: always
environment:
POSTGRES_USER: paypol
POSTGRES_PASSWORD: paypol_password
POSTGRES_DB: paypol_core
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U paypol -d paypol_core"]
interval: 5s
timeout: 5s
retries: 5
# 2. Adminer: Lightweight DB GUI (Access at http://localhost:8080)
adminer:
image: adminer
restart: always
ports:
- "8080:8080"
depends_on:
db:
condition: service_healthy
volumes:
postgres_data: