File tree 4 files changed +23
-9
lines changed
4 files changed +23
-9
lines changed Original file line number Diff line number Diff line change
1
+ POSTGRES_USER = odoo
2
+ POSTGRES_PASSWORD = odoo
3
+ POSTGRES_DB = postgres
4
+
Original file line number Diff line number Diff line change 1
- data
1
+ data
2
+ .env
Original file line number Diff line number Diff line change @@ -12,10 +12,17 @@ docker exec -ti --user root odoo chown -R odoo:odoo /mnt/extra-addons/ /var/lib/
12
12
13
13
## Install odoo
14
14
15
- * DB Name: odoo
15
+ * Go to [ http://localhost:8069/ ] ( http://localhost:8069/ )
16
+ * Database Name: odoo
17
+
18
+ ![ odoo 15] ( ./data/img/step1.png )
19
+
20
+ ![ odoo 15] ( ./data/img/step2.png )
16
21
17
22
## How to create custom module?
18
23
19
24
``` bash
20
25
docker exec -ti odoo odoo scaffold /mnt/extra-addons/custom_module
21
- ```
26
+ ```
27
+
28
+ Thank for star to my project!
Original file line number Diff line number Diff line change @@ -5,10 +5,12 @@ services:
5
5
image : postgres:13
6
6
container_name : postgres
7
7
restart : always
8
+ ports :
9
+ - " 5432:5432"
8
10
environment :
9
- POSTGRES_USER : odoo
10
- POSTGRES_PASSWORD : odoo
11
- POSTGRES_DB : postgres
11
+ POSTGRES_USER : ${POSTGRES_USER}
12
+ POSTGRES_PASSWORD : ${POSTGRES_PASSWORD}
13
+ POSTGRES_DB : ${POSTGRES_DB}
12
14
PGDATA : /var/lib/postgresql/data
13
15
volumes :
14
16
- ./data/postgres:/var/lib/postgresql/data
@@ -23,9 +25,9 @@ services:
23
25
- " 8069:8069"
24
26
- " 8072:8072"
25
27
environment :
26
- - HOST= postgres
27
- - USER=odoo
28
- - PASSWORD=odoo
28
+ HOST : postgres
29
+ USER : ${POSTGRES_USER}
30
+ PASSWORD : ${POSTGRES_PASSWORD}
29
31
volumes :
30
32
- ./etc/odoo:/etc/odoo
31
33
- ./data/addons:/mnt/extra-addons
You can’t perform that action at this time.
0 commit comments