1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00

update odoo

This commit is contained in:
kev 2019-04-07 11:06:50 +08:00
parent 20dc3325ec
commit 9deb4d3f18

View File

@ -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