forked from actualbudget/actual
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.full.yml
More file actions
160 lines (152 loc) · 3.92 KB
/
Copy pathdocker-compose.full.yml
File metadata and controls
160 lines (152 loc) · 3.92 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
version: '3.8'
services:
# ==========================================
# ACTUAL BUDGET DEVELOPMENT
# ==========================================
actual-dev:
container_name: actual-dev
build:
context: .
dockerfile: Dockerfile
ports:
- '3001:3001' # Frontend development
- '5006:5006' # Backend API
- '3000:3000' # AI Chat API
- '9229:9229' # Node.js debug port
volumes:
- .:/app
- /app/node_modules
- ./actual-data:/data
environment:
- NODE_ENV=development
- ACTUAL_PORT=5006
- ACTUAL_HOSTNAME=0.0.0.0
- ACTUAL_HTTPS=false
networks:
- actual-network
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:5006/health']
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
# ==========================================
# ACTUAL AI - CATEGORIZACIÓN AUTOMÁTICA
# ==========================================
actual-ai:
image: docker.io/sakowicz/actual-ai:latest
container_name: actual-ai
restart: unless-stopped
depends_on:
actual-dev:
condition: service_healthy
env_file:
- .env.ai
environment:
# Conexión interna entre contenedores
ACTUAL_SERVER_URL: http://actual-dev:5006
# Features por defecto (puedes modificar en .env.ai)
FEATURES: >
[
"dryRun",
"classifyOnStartup",
"syncAccountsBeforeClassify",
"freeWebSearch",
"suggestNewCategories"
]
volumes:
# Datos temporales de actual-ai
- actual-ai-data:/tmp/actual-ai
# Logs persistentes
- ./logs/actual-ai:/var/log/actual-ai
networks:
- actual-network
healthcheck:
test: ['CMD', 'node', '-e', "console.log('AI service ready')"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
labels:
- 'actual.service=ai'
- 'actual.description=Automatic transaction categorization using AI'
# ==========================================
# REDIS (OPCIONAL - Para cache de IA)
# ==========================================
redis:
image: redis:7-alpine
container_name: actual-redis
ports:
- '6379:6379'
volumes:
- redis-data:/data
networks:
- actual-network
command: redis-server --appendonly yes
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 30s
timeout: 10s
retries: 3
profiles:
- with-cache
# ==========================================
# POSTGRES (OPCIONAL - Para analytics)
# ==========================================
postgres:
image: postgres:15-alpine
container_name: actual-postgres
environment:
POSTGRES_DB: actual_analytics
POSTGRES_USER: actual
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-actual123}
volumes:
- postgres-data:/var/lib/postgresql/data
- ./sql/init.sql:/docker-entrypoint-initdb.d/init.sql
ports:
- '5432:5432'
networks:
- actual-network
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U actual']
interval: 30s
timeout: 10s
retries: 5
profiles:
- with-analytics
# ==========================================
# OLLAMA (OPCIONAL - IA Local)
# ==========================================
ollama:
image: ollama/ollama:latest
container_name: actual-ollama
ports:
- '11434:11434'
volumes:
- ollama-data:/root/.ollama
networks:
- actual-network
environment:
- OLLAMA_ORIGINS=*
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:11434/api/version']
interval: 30s
timeout: 10s
retries: 3
profiles:
- with-local-ai
volumes:
actual-ai-data:
driver: local
redis-data:
driver: local
postgres-data:
driver: local
ollama-data:
driver: local
networks:
actual-network:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16