Files
encoach_backend_new_v3/docker-compose.yml
devops c1b23c8a5c Add Dockerfile to pre-bake Python ML dependencies into backend image
Extends odoo:19.0 with all requirements from new_project/requirements.txt
(openai, torch, sentence-transformers, faiss-cpu, etc.) so they are
baked into the image at build time — no more manual pip installs needed.

Updates docker-compose.yml to use build: . and image: encoach-backend:latest.

Made-with: Cursor
2026-04-01 19:24:51 +04:00

38 lines
910 B
YAML

services:
db:
image: postgres:16
container_name: backend-v2-db
restart: unless-stopped
environment:
POSTGRES_USER: odoo
POSTGRES_PASSWORD: odoo
POSTGRES_DB: encoach_v2
volumes:
- odoo-db-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U odoo"]
interval: 5s
timeout: 5s
retries: 5
odoo:
build: .
image: encoach-backend:latest
container_name: backend-v2-odoo
restart: unless-stopped
depends_on:
db:
condition: service_healthy
ports:
- "8069:8069"
volumes:
- odoo-web-data:/var/lib/odoo
- ./odoo-docker.conf:/etc/odoo/odoo.conf:ro
- ./new_project/custom_addons:/mnt/custom_addons:ro
- ./new_project/enterprise-19:/mnt/enterprise:ro
- ./new_project/openeducat_erp-19.0:/mnt/openeducat:ro
volumes:
odoo-db-data:
odoo-web-data: