Update content.md

Update examples with 17 vs 16
This commit is contained in:
Andrew Latham 2024-03-31 16:20:06 -06:00 committed by GitHub
parent 170bfea3d1
commit cb0910e55d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 5 deletions

View File

@ -63,7 +63,7 @@ The default configuration file for the server (located at `/etc/odoo/odoo.conf`)
$ docker run -v /path/to/config:/etc/odoo -p 8069:8069 --name odoo --link db:db -t %%IMAGE%% $ docker run -v /path/to/config:/etc/odoo -p 8069:8069 --name odoo --link db:db -t %%IMAGE%%
``` ```
Please use [this configuration template](https://github.com/odoo/docker/blob/master/16.0/odoo.conf) to write your custom configuration as we already set some arguments for running Odoo inside a Docker container. Please use [this configuration template](https://github.com/odoo/docker/blob/master/17.0/odoo.conf) to write your custom configuration as we already set some arguments for running Odoo inside a Docker container.
You can also directly specify Odoo arguments inline. Those arguments must be given after the keyword `--` in the command-line, as follows You can also directly specify Odoo arguments inline. Those arguments must be given after the keyword `--` in the command-line, as follows
@ -107,7 +107,7 @@ The simplest `docker-compose.yml` file would be:
version: '3.1' version: '3.1'
services: services:
web: web:
image: %%IMAGE%%:16.0 image: %%IMAGE%%:17.0
depends_on: depends_on:
- db - db
ports: ports:
@ -126,7 +126,7 @@ If the default postgres credentials does not suit you, tweak the environment var
version: '3.1' version: '3.1'
services: services:
web: web:
image: %%IMAGE%%:16.0 image: %%IMAGE%%:17.0
depends_on: depends_on:
- mydb - mydb
ports: ports:
@ -154,7 +154,7 @@ Here's a last example showing you how to
version: '3.1' version: '3.1'
services: services:
web: web:
image: %%IMAGE%%:16.0 image: %%IMAGE%%:17.0
depends_on: depends_on:
- db - db
ports: ports:
@ -199,7 +199,7 @@ Odoo images are updated on a regular basis to make them use recent releases (a n
Suppose you created a database from an Odoo instance named old-odoo, and you want to access this database from a new Odoo instance named new-odoo, e.g. because you've just downloaded a newer Odoo image. Suppose you created a database from an Odoo instance named old-odoo, and you want to access this database from a new Odoo instance named new-odoo, e.g. because you've just downloaded a newer Odoo image.
By default, Odoo 16.0 uses a filestore (located at `/var/lib/odoo/filestore/`) for attachments. You should restore this filestore in your new Odoo instance by running By default, Odoo 16.0+ uses a filestore (located at `/var/lib/odoo/filestore/`) for attachments. You should restore this filestore in your new Odoo instance by running
```console ```console
$ docker run --volumes-from old-odoo -p 8070:8069 --name new-odoo --link db:db -t %%IMAGE%% $ docker run --volumes-from old-odoo -p 8070:8069 --name new-odoo --link db:db -t %%IMAGE%%