-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (53 loc) · 1.22 KB
/
docker-compose.yml
File metadata and controls
56 lines (53 loc) · 1.22 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
services:
api:
build: .
container_name: "steam-style-api"
environment:
DATABASE_URL: ${DATABASE_URL:-http://steam-style-qdrant:6333}
COLLECTION_NAME: Steam-Style-Items
DEVICE: cpu
MODEL_NAME: google/siglip2-base-patch16-224
networks:
- steam-style-shared
expose:
- "8000"
healthcheck:
test:
[
"CMD",
"python",
"-c",
"import urllib.request;
urllib.request.urlopen('http://127.0.0.1:8000/', timeout=3)",
]
interval: 30s
timeout: 5s
retries: 5
start_period: 20s
restart: unless-stopped
tty: true
nginx:
image: nginx:1.27-alpine
depends_on:
api:
condition: service_healthy
networks:
- steam-style-shared
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./certbot/www:/var/www/certbot
- ./certbot/conf:/etc/letsencrypt
restart: unless-stopped
certbot:
image: certbot/certbot:latest
networks:
- steam-style-shared
volumes:
- ./certbot/www:/var/www/certbot
- ./certbot/conf:/etc/letsencrypt
networks:
steam-style-shared:
external: true