-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.development.yml
61 lines (61 loc) · 1.88 KB
/
docker-compose.development.yml
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
services:
postgres:
image: pgvector/pgvector:pg17
environment:
- POSTGRES_USER=ecl
- POSTGRES_PASSWORD=ecl
- POSTGRES_DB=ecl-development
redis:
image: redis:latest
frontend:
build:
context: frontend/
dockerfile: Dockerfile.development
environment:
- PORT=10001
- VITE_API_BASE=http://localhost:10000
ports:
- "10001:10001"
api:
build:
context: server/
dockerfile: Dockerfile.development
ports:
- "10000:10000"
environment:
- PORT=10000
- RUN_MIGRATIONS=True
- ECL_DB_HOST=postgres
- ECL_DB_PORT=5432
- ECL_DB_USER=ecl
- ECL_DB_PASSWORD=ecl
- ECL_DB_NAME=ecl-development
- ECL_DJANGO_ALLOWED_HOSTS=["localhost", "127.0.0.1"]
- ECL_DJANGO_CORS_ALLOWED_ORIGINS=["http://localhost:10001", "http://127.0.0.1:10001"]
- ECL_DJANGO_SECRET_KEY=xxxxxxxxxxxxxxxxxx
- ECL_DJANGO_DEBUG=True
- ECL_CELERY_BROKER_URL=redis://redis:6379/0
- ECL_CELERY_RESULT_BACKEND=redis://redis:6379/0
- ECL_CELERY_TIMEZONE=UTC
- ECL_ADMIN_EMAIL=${ECL_ADMIN_EMAIL:-admin@example.com}
- ECL_ADMIN_PASSWORD=${ECL_ADMIN_PASSWORD:-changeme}
- OPENAI_API_KEY=$OPENAI_API_KEY
worker:
build:
context: server/
dockerfile: Dockerfile.development
environment:
- RUN_WORKER=True
- ECL_DB_HOST=postgres
- ECL_DB_PORT=5432
- ECL_DB_USER=ecl
- ECL_DB_PASSWORD=ecl
- ECL_DB_NAME=ecl-development
- ECL_DJANGO_ALLOWED_HOSTS=["localhost", "127.0.0.1"]
- ECL_DJANGO_CORS_ALLOWED_ORIGINS=["http://localhost:10001", "http://127.0.0.1:10001"]
- ECL_DJANGO_SECRET_KEY=xxxxxxxxxxxxxxxxxx
- ECL_DJANGO_DEBUG=True
- ECL_CELERY_BROKER_URL=redis://redis:6379/0
- ECL_CELERY_RESULT_BACKEND=redis://redis:6379/0
- ECL_CELERY_TIMEZONE=UTC
- OPENAI_API_KEY=$OPENAI_API_KEY