|
|
@@ -63,7 +63,7 @@ This image requires a running PostgreSQL server.
|
|
|
## Start a PostgreSQL server
|
|
|
|
|
|
```console
|
|
|
-$ docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo --name db postgres:9.4
|
|
|
+$ docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name db postgres:10
|
|
|
```
|
|
|
|
|
|
## Start an Odoo instance
|
|
|
@@ -89,13 +89,13 @@ Restarting a PostgreSQL server does not affect the created databases.
|
|
|
|
|
|
## Run Odoo with a custom configuration
|
|
|
|
|
|
-The default configuration file for the server (located at `/etc/odoo/openerp-server.conf`) can be overriden at startup using volumes. Suppose you have a custom configuration at `/path/to/config/openerp-server.conf`, then
|
|
|
+The default configuration file for the server (located at `/etc/odoo/odoo.conf`) can be overriden at startup using volumes. Suppose you have a custom configuration at `/path/to/config/odoo.conf`, then
|
|
|
|
|
|
```console
|
|
|
$ docker run -v /path/to/config:/etc/odoo -p 8069:8069 --name odoo --link db:db -t odoo
|
|
|
```
|
|
|
|
|
|
-Please use [this configuration template](https://github.com/odoo/docker/blob/master/8.0/openerp-server.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/12.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
|
|
|
|
|
|
@@ -137,16 +137,17 @@ The simplest `docker-compose.yml` file would be:
|
|
|
version: '2'
|
|
|
services:
|
|
|
web:
|
|
|
- image: odoo:10.0
|
|
|
+ image: odoo:12.0
|
|
|
depends_on:
|
|
|
- db
|
|
|
ports:
|
|
|
- "8069:8069"
|
|
|
db:
|
|
|
- image: postgres:9.4
|
|
|
+ image: postgres:10
|
|
|
environment:
|
|
|
- POSTGRES_PASSWORD=odoo
|
|
|
- POSTGRES_USER=odoo
|
|
|
+ - POSTGRES_DB=postgres
|
|
|
```
|
|
|
|
|
|
If the default postgres credentials does not suit you, tweak the environment variables:
|
|
|
@@ -155,7 +156,7 @@ If the default postgres credentials does not suit you, tweak the environment var
|
|
|
version: '2'
|
|
|
services:
|
|
|
web:
|
|
|
- image: odoo:10.0
|
|
|
+ image: odoo:12.0
|
|
|
depends_on:
|
|
|
- mydb
|
|
|
ports:
|
|
|
@@ -165,10 +166,11 @@ services:
|
|
|
- USER=odoo
|
|
|
- PASSWORD=myodoo
|
|
|
mydb:
|
|
|
- image: postgres:9.4
|
|
|
+ image: postgres:10
|
|
|
environment:
|
|
|
- POSTGRES_USER=odoo
|
|
|
- POSTGRES_PASSWORD=myodoo
|
|
|
+ - POSTGRES_DB=postgres
|
|
|
```
|
|
|
|
|
|
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:
|
|
|
@@ -177,7 +179,7 @@ Here's a last example showing you how to mount custom addons, how to use a custo
|
|
|
version: '2'
|
|
|
services:
|
|
|
web:
|
|
|
- image: odoo:10.0
|
|
|
+ image: odoo:12.0
|
|
|
depends_on:
|
|
|
- db
|
|
|
ports:
|
|
|
@@ -187,7 +189,7 @@ services:
|
|
|
- ./config:/etc/odoo
|
|
|
- ./addons:/mnt/extra-addons
|
|
|
db:
|
|
|
- image: postgres:9.4
|
|
|
+ image: postgres:10
|
|
|
environment:
|
|
|
- POSTGRES_PASSWORD=odoo
|
|
|
- POSTGRES_USER=odoo
|
|
|
@@ -211,7 +213,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.
|
|
|
|
|
|
-By default, Odoo 8.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 12.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
|
|
|
$ docker run --volumes-from old-odoo -p 8070:8069 --name new-odoo --link db:db -t odoo
|
|
|
@@ -221,7 +223,7 @@ You can also simply prevent Odoo from using the filestore by setting the system
|
|
|
|
|
|
# License
|
|
|
|
|
|
-View [license information](https://raw.githubusercontent.com/odoo/odoo/8.0/LICENSE) for the software contained in this image.
|
|
|
+View [license information](https://raw.githubusercontent.com/odoo/odoo/12.0/LICENSE) for the software contained in this image.
|
|
|
|
|
|
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
|
|
|
|