Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[odoo] Update content.md with database name example #2440

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 28 additions & 4 deletions odoo/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ services:
- POSTGRES_USER=odoo
```

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:

```yml
version: '3.1'
Expand All @@ -132,9 +132,33 @@ services:
ports:
- "8069:8069"
environment:
- HOST=mydb
- USER=odoo
- PASSWORD=myodoo
- HOST=mydb
- USER=odoo
- PASSWORD=myodoo
mydb:
image: postgres:15
environment:
- POSTGRES_DB=postgres
- POSTGRES_PASSWORD=myodoo
- POSTGRES_USER=odoo
```

Use a custom database name instead of `postgres`

```yml
version: '3.1'
services:
web:
image: %%IMAGE%%:17.0
depends_on:
- mydb
ports:
- "8069:8069"
environment:
- HOST=mydb
- USER=odoo
- PASSWORD=myodoo
command: odoo -d customdb
lathama marked this conversation as resolved.
Show resolved Hide resolved
mydb:
image: postgres:15
environment:
Expand Down
Loading