-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
89 lines (82 loc) · 2.1 KB
/
docker-compose.yaml
File metadata and controls
89 lines (82 loc) · 2.1 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
# docker-compose.yml
version: '3.8'
services:
same-same:
build: .
container_name: same-same-vector-db
ports:
- "8080:8080"
environment:
- GEMINI_API_KEY=${GEMINI_API_KEY:-}
- HUGGINGFACE_API_KEY=${HUGGINGFACE_API_KEY:-}
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--spider", "--quiet", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- same-same-network
volumes:
- ./logs:/app/logs
deploy:
resources:
limits:
memory: 512M
cpus: '0.5'
reservations:
memory: 128M
cpus: '0.1'
nginx:
image: nginx:alpine
container_name: same-same-nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/ssl:/etc/ssl/certs:ro
- ./web:/usr/share/nginx/html:ro
depends_on:
same-same:
condition: service_healthy
restart: unless-stopped
networks:
- same-same-network
prometheus:
image: prom/prometheus:latest
container_name: same-same-prometheus
ports:
- "9090:9090"
volumes:
- ./monitoring/prometheus.yml:/etc/prometheus/prometheus.yml:ro
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
networks:
- same-same-network
profiles:
- monitoring
grafana:
image: grafana/grafana:latest
container_name: same-same-grafana
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin123
volumes:
- grafana-storage:/var/lib/grafana
- ./monitoring/grafana/dashboards:/etc/grafana/provisioning/dashboards:ro
- ./monitoring/grafana/datasources:/etc/grafana/provisioning/datasources:ro
networks:
- same-same-network
profiles:
- monitoring
networks:
same-same-network:
driver: bridge
volumes:
grafana-storage: