Skip to content

Commit 7ca5f14

Browse files
committed
update readme
1 parent fd1ee03 commit 7ca5f14

File tree

4 files changed

+23
-9
lines changed

4 files changed

+23
-9
lines changed

.env.sample

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
POSTGRES_USER=odoo
2+
POSTGRES_PASSWORD=odoo
3+
POSTGRES_DB=postgres
4+

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
data
1+
data
2+
.env

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,17 @@ docker exec -ti --user root odoo chown -R odoo:odoo /mnt/extra-addons/ /var/lib/
1212

1313
## Install odoo
1414

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)
1621

1722
## How to create custom module?
1823

1924
```bash
2025
docker exec -ti odoo odoo scaffold /mnt/extra-addons/custom_module
21-
```
26+
```
27+
28+
Thank for star to my project!

docker-compose.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ services:
55
image: postgres:13
66
container_name: postgres
77
restart: always
8+
ports:
9+
- "5432:5432"
810
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}
1214
PGDATA: /var/lib/postgresql/data
1315
volumes:
1416
- ./data/postgres:/var/lib/postgresql/data
@@ -23,9 +25,9 @@ services:
2325
- "8069:8069"
2426
- "8072:8072"
2527
environment:
26-
- HOST=postgres
27-
- USER=odoo
28-
- PASSWORD=odoo
28+
HOST: postgres
29+
USER: ${POSTGRES_USER}
30+
PASSWORD: ${POSTGRES_PASSWORD}
2931
volumes:
3032
- ./etc/odoo:/etc/odoo
3133
- ./data/addons:/mnt/extra-addons

0 commit comments

Comments
 (0)