Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
90 lines (81 loc) · 2 KB
/
Copy pathdocker-compose.yml
File metadata and controls
90 lines (81 loc) · 2 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
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_DB: ${POSTGRES_DB:-beacon_db}
POSTGRES_USER: ${POSTGRES_USER:-beacon_user}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-beacon_pass}
volumes:
- postgres-data:/var/lib/postgresql/data
pgbouncer:
image: edoburu/pgbouncer:1.22.1-p1
environment:
DB_HOST: postgres
DB_PORT: 5432
DB_USER: ${POSTGRES_USER:-beacon_user}
DB_PASSWORD: ${POSTGRES_PASSWORD:-beacon_pass}
DB_NAME: ${POSTGRES_DB:-beacon_db}
POOL_MODE: transaction
DEFAULT_POOL_SIZE: 20
MAX_CLIENT_CONN: 200
depends_on:
- postgres
ports:
- "6432:5432"
redis:
image: redis:7-alpine
ports:
- "6379:6379"
backend:
build: ./beacon/backend
command: daphne -b 0.0.0.0 -p 8000 beacon.asgi:application
env_file:
- ./beacon/backend/.env
depends_on:
- pgbouncer
- redis
ports:
- "8000:8000"
celery-llm:
build: ./beacon/backend
command: celery -A beacon worker -Q llm_queue -c 2 --loglevel=info
env_file:
- ./beacon/backend/.env
depends_on:
- backend
- redis
celery-embeddings:
build: ./beacon/backend
command: celery -A beacon worker -Q embedding_queue -c 4 --loglevel=info
env_file:
- ./beacon/backend/.env
depends_on:
- backend
- redis
celery-default:
build: ./beacon/backend
command: celery -A beacon worker -Q default -c 4 --loglevel=info
env_file:
- ./beacon/backend/.env
depends_on:
- backend
- redis
celery-beat:
build: ./beacon/backend
command: celery -A beacon beat --loglevel=info
env_file:
- ./beacon/backend/.env
depends_on:
- backend
- redis
nginx:
image: nginx:1.27-alpine
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./beacon/frontend/dist:/usr/share/nginx/html:ro
depends_on:
- backend
ports:
- "80:80"
volumes:
postgres-data: