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
# Docker Compose configuration for local development and cloud deployment
version: '3.8'
services:
shimmy:
build:
context: ..
dockerfile: deploy/Dockerfile
ports:
- "11434:11434"
environment:
- RUST_LOG=info
volumes:
# Mount models directory if you have local models
- ./models:/app/models:ro
restart: unless-stopped
healthcheck:
test:
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
# Optional: Add Nginx reverse proxy for production
nginx:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
# Add SSL certificates if needed
# - ./ssl:/etc/nginx/ssl:ro
depends_on:
- shimmy
restart: unless-stopped
profiles:
- production