forked from minhng92/odoo-16-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
35 lines (33 loc) · 869 Bytes
/
docker-compose.yml
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
version: '2'
services:
db:
image: postgres:15
user: root
environment:
- POSTGRES_USER=odoo
- POSTGRES_PASSWORD=odoo16@2022
- POSTGRES_DB=postgres
restart: always # run as a service
volumes:
- ./postgresql:/var/lib/postgresql/data
odoo16:
image: odoo:16
user: root
depends_on:
- db
ports:
- "10016:8069"
- "20016:8072" # live chat
tty: true
command: --
environment:
- HOST=db
- USER=odoo
- PASSWORD=odoo16@2022
volumes:
#- /etc/timezone:/etc/timezone:ro
#- /etc/localtime:/etc/localtime:ro
# - ./entrypoint.sh:/entrypoint.sh # if you want to install additional Python packages, uncomment this line!
- ./addons:/mnt/extra-addons
- ./etc:/etc/odoo
restart: always # run as a service