You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: odoo/content.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ This image requires a running PostgreSQL server.
13
13
## Start a PostgreSQL server
14
14
15
15
```console
16
-
$ docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name db postgres:13
16
+
$ docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name db postgres:15
17
17
```
18
18
19
19
## Start an Odoo instance
@@ -27,16 +27,16 @@ The alias of the container running Postgres must be db for Odoo to be able to co
27
27
## Stop and restart an Odoo instance
28
28
29
29
```console
30
-
$ docker stop odoo
31
-
$ docker start -a odoo
30
+
$ docker stop %%IMAGE%%
31
+
$ docker start -a %%IMAGE%%
32
32
```
33
33
34
34
## Use named volumes to preserve data
35
35
36
36
When the Odoo container is created like described above, the odoo filestore is created inside the container. If the container is removed, the filestore is lost. The preferred way to prevent that is by using a Docker named [volume](https://docs.docker.com/storage/volumes/).
With the above command, the volume named `odoo-data` will persist even if the container is removed and can be re-used by issuing the same command.
@@ -46,7 +46,7 @@ The path `/var/lib/odoo` used as the mount point of the volume must match the od
46
46
Note that the same principle applies to the Postgresql container and a named volume can be used to preserve the database when the container is removed. So the database container could be started like this (before the odoo container):
47
47
48
48
```console
49
-
$ docker run -d -v odoo-db:/var/lib/postgresql/data -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name db postgres:13
49
+
$ docker run -d -v odoo-db:/var/lib/postgresql/data -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name db postgres:15
50
50
```
51
51
52
52
## Stop and restart a PostgreSQL server
@@ -63,7 +63,7 @@ The default configuration file for the server (located at `/etc/odoo/odoo.conf`)
Please use [this configuration template](https://github.com/odoo/docker/blob/master/14.0/odoo.conf) to write your custom configuration as we already set some arguments for running Odoo inside a Docker container.
66
+
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.
67
67
68
68
You can also directly specify Odoo arguments inline. Those arguments must be given after the keyword `--` in the command-line, as follows
69
69
@@ -79,14 +79,16 @@ You can mount your own Odoo addons within the Odoo container, at `/mnt/extra-add
Please note that for plain use of mails and reports functionalities, when the host and container ports differ (e.g. 8070 and 8069), one has to set, in Odoo, Settings->Parameters->System Parameters (requires technical features), web.base.url to the container port (e.g. 127.0.0.1:8069).
91
+
**Note:** For plain use of mails and reports functionalities, when the host and container ports differ (e.g. 8070 and 8069), one has to set, in Odoo, `Settings->Parameters->System Parameters` (requires technical features), web.base.url to the container port (e.g. 127.0.0.1:8069).
90
92
91
93
## Environment Variables
92
94
@@ -105,13 +107,13 @@ The simplest `docker-compose.yml` file would be:
105
107
version: '3.1'
106
108
services:
107
109
web:
108
-
image: %%IMAGE%%:14.0
110
+
image: %%IMAGE%%:16.0
109
111
depends_on:
110
112
- db
111
113
ports:
112
114
- "8069:8069"
113
115
db:
114
-
image: postgres:13
116
+
image: postgres:15
115
117
environment:
116
118
- POSTGRES_DB=postgres
117
119
- POSTGRES_PASSWORD=odoo
@@ -124,7 +126,7 @@ If the default postgres credentials does not suit you, tweak the environment var
124
126
version: '3.1'
125
127
services:
126
128
web:
127
-
image: %%IMAGE%%:14.0
129
+
image: %%IMAGE%%:16.0
128
130
depends_on:
129
131
- mydb
130
132
ports:
@@ -134,7 +136,7 @@ services:
134
136
- USER=odoo
135
137
- PASSWORD=myodoo
136
138
mydb:
137
-
image: postgres:13
139
+
image: postgres:15
138
140
environment:
139
141
- POSTGRES_DB=postgres
140
142
- POSTGRES_PASSWORD=myodoo
@@ -152,7 +154,7 @@ Here's a last example showing you how to
Odoo images are updated on a regular basis to make them use recent releases (a new release of each version of Odoo is built [every night](http://nightly.odoo.com/)). Please be aware that what follows is about upgrading from an old release to the latest one provided of the same major version, as upgrading from a major version to another is a much more complex process requiring elaborated migration scripts (see [Odoo Enterprise Upgrade page](https://upgrade.odoo.com/database/upload) or this [community project](https://doc.therp.nl/openupgrade/) which aims to write those scripts).
198
+
Odoo images are updated on a regular basis to make them use recent releases (a new release of each version of Odoo is built [every night](http://nightly.odoo.com/)). Please be aware that what follows is about upgrading from an old release to the latest one provided of the same major version, as upgrading from a major version to another is a much more complex process requiring elaborated migration scripts (see [Odoo Upgrade page](https://upgrade.odoo.com) or this [community project](https://github.com/OCA/OpenUpgrade) which aims to write those scripts).
197
199
198
200
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.
199
201
200
-
By default, Odoo 14.0 uses a filestore (located at /var/lib/odoo/filestore/) for attachments. You should restore this filestore in your new Odoo instance by running
202
+
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
You can also simply prevent Odoo from using the filestore by setting the system parameter `ir_attachment.location` to `db-storage` in Settings->Parameters->System Parameters (requires technical features).
0 commit comments