From 9deb4d3f181b8ca2dcf4c8b63e843b5aead9d66a Mon Sep 17 00:00:00 2001 From: kev Date: Sun, 7 Apr 2019 11:06:50 +0800 Subject: [PATCH] update odoo --- odoo/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/odoo/README.md b/odoo/README.md index 2ce35e5..34fddad 100644 --- a/odoo/README.md +++ b/odoo/README.md @@ -9,8 +9,9 @@ odoo odoo: image: odoo:12 ports: - - "8069:8069" + - "127.0.0.1:8069:8069" volumes: + - ./data/config:/etc/odoo - ./data/odoo:/var/lib/odoo - ./data/addons:/mnt/extra-addons links: @@ -18,10 +19,11 @@ odoo: restart: always postgres: - image: postgres:9-alpine + image: postgres:11-alpine volumes: - ./data/postgres:/var/lib/postgresql/data environment: + - POSTGRES_DB=postgres - POSTGRES_USER=odoo - POSTGRES_PASSWORD=odoo restart: always @@ -32,11 +34,9 @@ postgres: ```bash $ mkdir -m 777 -p data/odoo $ docker-compose up -d -$ docker-compose exec postgres psql -U postgres -postgres=# \l -postgres=# drop database odoo; -postgres=# \q $ curl http://localhost:8069 ``` +> Create a database: odoo + [1]: https://www.odoo.com