|
|
@@ -145,9 +145,9 @@ services:
|
|
|
db:
|
|
|
image: postgres:10
|
|
|
environment:
|
|
|
+ - POSTGRES_DB=postgres
|
|
|
- POSTGRES_PASSWORD=odoo
|
|
|
- POSTGRES_USER=odoo
|
|
|
- - POSTGRES_DB=postgres
|
|
|
```
|
|
|
|
|
|
If the default postgres credentials does not suit you, tweak the environment variables:
|
|
|
@@ -168,9 +168,9 @@ services:
|
|
|
mydb:
|
|
|
image: postgres:10
|
|
|
environment:
|
|
|
- - POSTGRES_USER=odoo
|
|
|
- - POSTGRES_PASSWORD=myodoo
|
|
|
- POSTGRES_DB=postgres
|
|
|
+ - POSTGRES_PASSWORD=myodoo
|
|
|
+ - POSTGRES_USER=odoo
|
|
|
```
|
|
|
|
|
|
Here's a last example showing you how to mount custom addons, how to use a custom configuration file and how to use volumes for the Odoo and postgres data dir:
|
|
|
@@ -191,6 +191,7 @@ services:
|
|
|
db:
|
|
|
image: postgres:10
|
|
|
environment:
|
|
|
+ - POSTGRES_DB=postgres
|
|
|
- POSTGRES_PASSWORD=odoo
|
|
|
- POSTGRES_USER=odoo
|
|
|
- PGDATA=/var/lib/postgresql/data/pgdata
|