mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
update odoo
This commit is contained in:
parent
20dc3325ec
commit
9deb4d3f18
@ -9,8 +9,9 @@ odoo
|
|||||||
odoo:
|
odoo:
|
||||||
image: odoo:12
|
image: odoo:12
|
||||||
ports:
|
ports:
|
||||||
- "8069:8069"
|
- "127.0.0.1:8069:8069"
|
||||||
volumes:
|
volumes:
|
||||||
|
- ./data/config:/etc/odoo
|
||||||
- ./data/odoo:/var/lib/odoo
|
- ./data/odoo:/var/lib/odoo
|
||||||
- ./data/addons:/mnt/extra-addons
|
- ./data/addons:/mnt/extra-addons
|
||||||
links:
|
links:
|
||||||
@ -18,10 +19,11 @@ odoo:
|
|||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres:9-alpine
|
image: postgres:11-alpine
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/postgres:/var/lib/postgresql/data
|
- ./data/postgres:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
|
- POSTGRES_DB=postgres
|
||||||
- POSTGRES_USER=odoo
|
- POSTGRES_USER=odoo
|
||||||
- POSTGRES_PASSWORD=odoo
|
- POSTGRES_PASSWORD=odoo
|
||||||
restart: always
|
restart: always
|
||||||
@ -32,11 +34,9 @@ postgres:
|
|||||||
```bash
|
```bash
|
||||||
$ mkdir -m 777 -p data/odoo
|
$ mkdir -m 777 -p data/odoo
|
||||||
$ docker-compose up -d
|
$ docker-compose up -d
|
||||||
$ docker-compose exec postgres psql -U postgres
|
|
||||||
postgres=# \l
|
|
||||||
postgres=# drop database odoo;
|
|
||||||
postgres=# \q
|
|
||||||
$ curl http://localhost:8069
|
$ curl http://localhost:8069
|
||||||
```
|
```
|
||||||
|
|
||||||
|
> Create a database: odoo
|
||||||
|
|
||||||
[1]: https://www.odoo.com
|
[1]: https://www.odoo.com
|
||||||
|
Loading…
Reference in New Issue
Block a user