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

43 lines
713 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:
- "8069:8069"
volumes:
- ./data/odoo:/var/lib/odoo
- ./data/addons:/mnt/extra-addons
links:
- postgres:db
restart: always
postgres:
image: postgres:9-alpine
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_USER=odoo
- POSTGRES_PASSWORD=odoo
restart: always
```
## up and running
```bash
2018-04-28 11:11:10 +02:00
$ mkdir -m 777 -p data/odoo
2017-09-06 11:23:27 +02:00
$ docker-compose up -d
$ docker-compose exec postgres psql -U postgres
postgres=# \l
postgres=# drop database odoo;
postgres=# \q
$ curl http://localhost:8069
```
[1]: https://www.odoo.com