Add 'POSTGRES_DB=postgres' to the custom example
To fix https://github.com/odoo/odoo/issues/27447. Sort the environtment variables as well.
This commit is contained in:
parent
c8cb29e818
commit
f6a9e738ed
|
|
@ -95,9 +95,9 @@ services:
|
||||||
db:
|
db:
|
||||||
image: postgres:10
|
image: postgres:10
|
||||||
environment:
|
environment:
|
||||||
|
- POSTGRES_DB=postgres
|
||||||
- POSTGRES_PASSWORD=odoo
|
- POSTGRES_PASSWORD=odoo
|
||||||
- POSTGRES_USER=odoo
|
- POSTGRES_USER=odoo
|
||||||
- POSTGRES_DB=postgres
|
|
||||||
```
|
```
|
||||||
|
|
||||||
If the default postgres credentials does not suit you, tweak the environment variables:
|
If the default postgres credentials does not suit you, tweak the environment variables:
|
||||||
|
|
@ -118,9 +118,9 @@ services:
|
||||||
mydb:
|
mydb:
|
||||||
image: postgres:10
|
image: postgres:10
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_USER=odoo
|
|
||||||
- POSTGRES_PASSWORD=myodoo
|
|
||||||
- POSTGRES_DB=postgres
|
- 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:
|
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:
|
||||||
|
|
@ -141,6 +141,7 @@ services:
|
||||||
db:
|
db:
|
||||||
image: postgres:10
|
image: postgres:10
|
||||||
environment:
|
environment:
|
||||||
|
- POSTGRES_DB=postgres
|
||||||
- POSTGRES_PASSWORD=odoo
|
- POSTGRES_PASSWORD=odoo
|
||||||
- POSTGRES_USER=odoo
|
- POSTGRES_USER=odoo
|
||||||
- PGDATA=/var/lib/postgresql/data/pgdata
|
- PGDATA=/var/lib/postgresql/data/pgdata
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue