-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
153 lines (145 loc) · 3.56 KB
/
docker-compose.yml
File metadata and controls
153 lines (145 loc) · 3.56 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
services:
postgresql:
image: postgres:16-alpine
container_name: sef_postgresql
environment:
POSTGRES_DB: sef
POSTGRES_USER: sef_user
POSTGRES_PASSWORD: sef_password
PGDATA: /var/lib/postgresql/data/pgdata
ports:
- "5432:5432"
volumes:
- postgresql_data:/var/lib/postgresql/data
networks:
- sef_network
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U sef_user -d sef"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
container_name: sef_redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
networks:
- sef_network
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
qdrant:
image: qdrant/qdrant:latest
container_name: sef_qdrant
ports:
- "6333:6333"
- "6334:6334"
volumes:
- qdrant_data:/qdrant/storage
networks:
- sef_network
restart: unless-stopped
searxng:
image: searxng/searxng:latest
container_name: sef_searxng
ports:
- "8888:8080"
volumes:
- searxng_data:/etc/searxng
- ./searxng-settings.yml:/etc/searxng/settings.yml:ro
environment:
- SEARXNG_BASE_URL=http://localhost:8888/
- SEARXNG_SECRET=your-searxng-secret-key-change-this
networks:
- sef_network
restart: unless-stopped
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: sef_backend
environment:
- DATABASE_HOST=postgresql
- DATABASE_PORT=5432
- DATABASE_NAME=sef
- DATABASE_USER=sef_user
- DATABASE_PASSWORD=sef_password
- REDIS_HOST=redis
- REDIS_PORT=6379
- QDRANT_HOST=qdrant
- QDRANT_PORT=6333
- SEARXNG_URL=http://searxng:8080
- APP_ENV=production
- APP_KEY=your-secret-key-here-change-this-in-production
- JWT_SECRET=your-jwt-secret-here-change-this-in-production
- KEYCLOAK_URL=http://keycloak:8080
- KEYCLOAK_REALM=sef-realm
- KEYCLOAK_CLIENT_ID=sef-client
- KEYCLOAK_CLIENT_SECRET=lOvSVn2N6pLWGu5rmPI5ZxRtzKOyH58d
- KEYCLOAK_REDIRECT_URL=http://localhost:3000/auth/callback
ports:
- "8110:8110"
depends_on:
postgresql:
condition: service_healthy
redis:
condition: service_healthy
networks:
- sef_network
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: sef_frontend
environment:
- NODE_ENV=production
- API_URL=backend
ports:
- "3000:3000"
depends_on:
- backend
networks:
- sef_network
restart: unless-stopped
keycloak:
image: quay.io/keycloak/keycloak:latest
command:
- start-dev
environment:
- DB_VENDOR=postgres
- KC_DB_URL=jdbc:postgresql://kc_postgres:5432/postgres
- KC_DB=postgres
- KC_DB_USERNAME=keycloak
- KC_DB_PASSWORD=password
- KC_BOOTSTRAP_ADMIN_USERNAME=admin
- KC_BOOTSTRAP_ADMIN_PASSWORD=admin
- KC_HTTP_ENABLED=true
- KC_HOSTNAME_STRICT=false
ports:
- '8080:8080'
depends_on:
- kc_postgres
kc_postgres:
image: postgres:16-alpine
environment:
- POSTGRES_DB=keycloak
- POSTGRES_USER=keycloak
- POSTGRES_PASSWORD=password
volumes:
- kc_db:/var/lib/postgresql/data/
volumes:
postgresql_data:
redis_data:
qdrant_data:
searxng_data:
kc_db:
networks:
sef_network:
driver: bridge