Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
78 lines (74 loc) · 2.16 KB
/
Copy pathdocker-compose.yml
File metadata and controls
78 lines (74 loc) · 2.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
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
services:
db:
image: pgvector/pgvector:pg16
container_name: erp_postgres
environment:
POSTGRES_DB: ceramic_erp
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres123
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./database/schema.sql:/docker-entrypoint-initdb.d/01-schema.sql
- ./database/ai_schema.sql:/docker-entrypoint-initdb.d/02-ai-schema.sql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
container_name: erp_redis
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: erp_backend
ports:
- "8000:8000"
environment:
DATABASE_URL: postgresql://postgres:postgres123@db:5432/ceramic_erp
REDIS_URL: redis://redis:6379/0
CELERY_BROKER_URL: redis://redis:6379/1
CELERY_RESULT_BACKEND: redis://redis:6379/1
SECRET_KEY: change-this-to-a-random-secret-key
ACCESS_TOKEN_EXPIRE_MINUTES: 480
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
AI_MODEL: claude-sonnet-4-20250514
DEBUG: "true"
ALLOWED_ORIGINS: http://localhost:3000,http://localhost:5173,http://localhost:8080
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
restart: unless-stopped
celery:
build:
context: ./backend
dockerfile: Dockerfile.celery
container_name: erp_celery
environment:
DATABASE_URL: postgresql://postgres:postgres123@db:5432/ceramic_erp
REDIS_URL: redis://redis:6379/0
CELERY_BROKER_URL: redis://redis:6379/1
CELERY_RESULT_BACKEND: redis://redis:6379/1
SECRET_KEY: change-this-to-a-random-secret-key
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
AI_MODEL: claude-sonnet-4-20250514
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
restart: unless-stopped
volumes:
postgres_data: