feat(templates): add Docker deployment templates
This commit is contained in:
parent
5136411258
commit
efbdbd82ed
4 changed files with 208 additions and 0 deletions
28
scripts/templates/docker/docker-compose.yml
Normal file
28
scripts/templates/docker/docker-compose.yml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# Agent Factory — docker-compose deployment template
|
||||
# Usage: docker compose up -d
|
||||
# Requires: .env file with ANTHROPIC_API_KEY=...
|
||||
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
agent:
|
||||
container_name: {{PROJECT_NAME}}-agent
|
||||
build: .
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
# Persistent data directories — survive container restarts
|
||||
- ./data:/home/agent/project/data
|
||||
- ./memory:/home/agent/project/memory
|
||||
- ./budget:/home/agent/project/budget
|
||||
- ./logs:/home/agent/project/logs
|
||||
security_opt:
|
||||
- no-new-privileges:true
|
||||
read_only: false
|
||||
# No Docker socket mount — agent cannot control the Docker daemon
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "10m"
|
||||
max-file: "3"
|
||||
Loading…
Add table
Add a link
Reference in a new issue