-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (51 loc) · 1.27 KB
/
Copy pathdocker-compose.yml
File metadata and controls
55 lines (51 loc) · 1.27 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
version: '3.8'
services:
# PostgreSQL Database
postgres:
image: pgvector/pgvector:pg16
container_name: cybinai-postgres
environment:
POSTGRES_USER: cybinai
POSTGRES_PASSWORD: cybinai_local_dev
POSTGRES_DB: cybinai
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./backend/database/init.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U cybinai"]
interval: 5s
timeout: 5s
retries: 5
# Redis for caching and real-time pub/sub
redis:
image: redis:7-alpine
container_name: cybinai-redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
command: redis-server --appendonly yes
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
# pgAdmin for database management (optional, helpful for development)
pgadmin:
image: dpage/pgadmin4:latest
container_name: cybinai-pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: admin@cybinai.local
PGADMIN_DEFAULT_PASSWORD: admin
PGADMIN_CONFIG_SERVER_MODE: 'False'
ports:
- "5050:80"
depends_on:
- postgres
profiles:
- tools
volumes:
postgres_data:
redis_data: