-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
100 lines (80 loc) · 2.13 KB
/
docker-compose.yml
File metadata and controls
100 lines (80 loc) · 2.13 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
version: '3.8'
services:
# Ananke CLI service for constraint extraction and compilation
ananke:
build:
context: .
dockerfile: Dockerfile
image: ananke:latest
container_name: ananke-cli
# Mount local workspace for processing files
volumes:
- ./:/workspace:ro # Read-only for safety
- ./output:/output # Writable output directory
# Environment variables for configuration
environment:
# Optional: Claude API for semantic analysis
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
# Optional: Modal endpoint for constrained generation
- MODAL_ENDPOINT=${MODAL_ENDPOINT:-}
# Log level (debug, info, warn, error)
- LOG_LEVEL=${LOG_LEVEL:-info}
# Timezone
- TZ=${TZ:-UTC}
# Resource limits
deploy:
resources:
limits:
cpus: '2.0'
memory: 2G
reservations:
cpus: '1.0'
memory: 512M
# Default command (can be overridden)
command: help
# Restart policy
restart: unless-stopped
# Network
networks:
- ananke-network
# Labels
labels:
com.ananke.service: "cli"
com.ananke.version: "0.1.0"
# Optional: Development environment with shell access
ananke-dev:
build:
context: .
dockerfile: Dockerfile
target: rust-builder # Use build stage for development
image: ananke:dev
container_name: ananke-dev
volumes:
- ./:/workspace
- ananke-cargo-cache:/root/.cargo/registry
- ananke-zig-cache:/workspace/zig-cache
environment:
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
- MODAL_ENDPOINT=${MODAL_ENDPOINT:-}
- LOG_LEVEL=debug
working_dir: /workspace
# Keep container running for interactive use
entrypoint: ["/bin/sh"]
stdin_open: true
tty: true
networks:
- ananke-network
labels:
com.ananke.service: "dev"
com.ananke.version: "0.1.0"
# Networks
networks:
ananke-network:
driver: bridge
name: ananke-network
# Volumes for caching
volumes:
ananke-cargo-cache:
name: ananke-cargo-cache
ananke-zig-cache:
name: ananke-zig-cache