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