-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
53 lines (49 loc) · 1.19 KB
/
compose.yaml
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
name: odoo-dev
services:
odoo:
build:
context: .
dockerfile: ./${UBUNTU_VERSION:-jammy}.Dockerfile
platforms:
- linux/amd64
image: localhost/odoo-dev:${UBUNTU_VERSION:-jammy}
container_name: odoo-${UBUNTU_VERSION:-jammy}
hostname: odoo-${UBUNTU_VERSION:-jammy}
platform: linux/amd64
depends_on:
- db
volumes:
- ${ODOO_WORKSPACE_DIR}:/code
- odoo-filestore:/home/odoo/.local/share/Odoo
- ${ODOO_DEVTOOLS_DIR}:/home/odoo/bin
- ./.bash_aliases:/home/odoo/.bash_aliases
- ./starship.toml:/home/odoo/.config/starship.toml
ports:
- "5678:5678"
- "8069:8069"
- "8071:8071"
- "8072:8072"
- "8073:8073"
working_dir: /code
stdin_open: true
tty: true
db:
image: postgres:16
container_name: db
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- odoo-db-data:/var/lib/postgresql/data/pgdata
ports:
- "5432:5432"
volumes:
odoo-db-data:
name: odoo-db-data
odoo-filestore:
name: odoo-filestore
networks:
default:
name: odoo-network