Merge pull request #1412 from saschpe/odoo-pg-readme

Add 'POSTGRES_DB=postgres' to the custom example
This commit is contained in:
yosifkit 2019-01-31 13:54:13 -08:00 committed by GitHub
commit ee4f20c529
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -95,9 +95,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:
@ -118,9 +118,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:
@ -141,6 +141,7 @@ services:
db:
image: postgres:10
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=odoo
- POSTGRES_USER=odoo
- PGDATA=/var/lib/postgresql/data/pgdata