-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
59 lines (56 loc) · 1.47 KB
/
docker-compose.yaml
File metadata and controls
59 lines (56 loc) · 1.47 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
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:9.0.3
container_name: elasticsearch
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- ES_JAVA_OPTS=-Xms512m -Xmx512m
ports:
- "9200:9200"
- "9300:9300"
volumes:
- /deployment/wannabe-starchive/data/:/usr/share/elasticsearch/data
healthcheck:
test: [ "CMD-SHELL", "curl -s http://localhost:9200/_cluster/health | grep -q '\"status\":\"green\"\\|\"status\":\"yellow\"'" ]
interval: 10s
timeout: 10s
retries: 5
networks:
- es_net
backend:
build:
context: ./backend
ports:
- "8000:8000"
env_file:
- .env
environment:
ELASTICSEARCH_URL: "http://elasticsearch:9200"
ADMIN_TOKEN: "BENE_KANN_KEIN_COUNTER_STRIKE123"
CRAWL_BURST_MAX: 2
MONITOR_CHECK_SCHEDULE: "0 */60 * * * *"
CRAWL_QUEUE_SCHEDULE: "*/30 * * * * *"
LANGUAGE_PRIORITY: "en,en-GB,en-US,de,de-DE"
FRONTEND_URL: "http://localhost:8080"
BACKEND_URL: "http://127.0.0.1:8000"
RUST_BACKTRACE: 1
depends_on:
elasticsearch:
condition: service_healthy
networks:
- es_net
frontend:
build:
context: ./frontend
ports:
- "8080:80"
environment:
BACKEND_URL: "http://localhost:8000"
APP_NAME: "Caption-Search"
DEBUG_MODE: "true"
networks:
- es_net
networks:
es_net:
driver: bridge