forked from mjavint/docker-odoo-dev
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·30 lines (30 loc) · 899 Bytes
/
docker-compose.yml
File metadata and controls
executable file
·30 lines (30 loc) · 899 Bytes
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
services:
web:
image: odoodev:18
container_name: o18
depends_on:
- mydb
ports:
- "8069:8069"
- "8072:8072"
- "8888:8888"
volumes:
- ./conf:/etc/odoo
- ./custom-addons:/mnt/custom-addons
- o18-data:/var/lib/odoo
# - ./odoo:/usr/lib/python3/dist-packages/odoo # uncomment this if you want to mount odoo source code
entrypoint: /usr/bin/python3 -m debugpy --listen 0.0.0.0:8888 /usr/bin/odoo -c /etc/odoo/odoo.conf -i base
# entrypoint: /usr/bin/odoo -c /etc/odoo/odoo.conf -i base # uncomment this if you want no debugpy
mydb:
image: postgres:16
container_name: p16
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- p16-data:/var/lib/postgresql/data/pgdata
volumes:
o18-data:
p16-data: