-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
53 lines (50 loc) · 1.28 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
53 lines (50 loc) · 1.28 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
# For development only. Set POSTGRES_PASSWORD in .env for production.
services:
odoo-mcp-gateway:
build: .
ports:
- "8080:8080"
env_file: .env
environment:
- MCP_TRANSPORT=streamable-http
- MCP_HOST=0.0.0.0
- MCP_PORT=8080
- ODOO_URL=http://odoo:8069
- CONFIG_DIR=/app/config
volumes:
- ./config:/app/config:ro
depends_on:
odoo:
condition: service_started
restart: unless-stopped
odoo:
image: odoo:18.0
environment:
- HOST=postgres
- USER=odoo
# For development only. Set POSTGRES_PASSWORD in .env for production.
- PASSWORD=${POSTGRES_PASSWORD:-changeme_dev_only}
volumes:
- odoo-data:/var/lib/odoo
- odoo-addons:/mnt/extra-addons
depends_on:
postgres:
condition: service_healthy
postgres:
image: postgres:16
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=odoo
# For development only. Set POSTGRES_PASSWORD in .env for production.
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-changeme_dev_only}
volumes:
- pg-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U odoo"]
interval: 5s
timeout: 3s
retries: 5
volumes:
odoo-data:
odoo-addons:
pg-data: