1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-12 11:14:57 +02:00
dockerfiles/odoo/README.md

43 lines
699 B
Markdown
Raw Normal View History

2017-09-06 11:23:27 +02:00
odoo
====
[Odoo][1] is a suite of web based open source business apps.
## docker-compose.yml
```yaml
odoo:
2018-12-25 10:08:48 +02:00
image: odoo:12
2017-09-06 11:23:27 +02:00
ports:
2019-04-07 05:06:50 +02:00
- "127.0.0.1:8069:8069"
2017-09-06 11:23:27 +02:00
volumes:
2019-04-07 05:06:50 +02:00
- ./data/config:/etc/odoo
2019-04-07 06:36:11 +02:00
- ./data/web:/var/lib/odoo
2017-09-06 11:23:27 +02:00
- ./data/addons:/mnt/extra-addons
links:
- postgres:db
restart: always
postgres:
2019-04-07 05:06:50 +02:00
image: postgres:11-alpine
2017-09-06 11:23:27 +02:00
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
2019-04-07 05:06:50 +02:00
- POSTGRES_DB=postgres
2017-09-06 11:23:27 +02:00
- POSTGRES_USER=odoo
- POSTGRES_PASSWORD=odoo
restart: always
```
## up and running
```bash
2019-04-07 06:36:11 +02:00
$ mkdir -m 777 -p data/web
2017-09-06 11:23:27 +02:00
$ docker-compose up -d
$ curl http://localhost:8069
```
2019-04-07 05:06:50 +02:00
> Create a database: odoo
2017-09-06 11:23:27 +02:00
[1]: https://www.odoo.com