From e9dfb97ac65aeb7cdccff9cd9720496d6e7941a7 Mon Sep 17 00:00:00 2001 From: kev Date: Wed, 6 Sep 2017 17:23:27 +0800 Subject: [PATCH] add odoo --- README.md | 1 + odoo/README.md | 42 +++++++++++++++++++++++++++++++++++++++++ odoo/docker-compose.yml | 19 +++++++++++++++++++ 3 files changed, 62 insertions(+) create mode 100644 odoo/README.md create mode 100644 odoo/docker-compose.yml diff --git a/README.md b/README.md index 5a5a190..35f7acd 100644 --- a/README.md +++ b/README.md @@ -249,6 +249,7 @@ A collection of delicious docker recipes. - [x] kylemanna/openvpn - [x] mongo - [x] neo4j +- [x] odoo - [x] owncloud - [x] phpmyadmin - [x] portainer/portainer :+1: diff --git a/odoo/README.md b/odoo/README.md new file mode 100644 index 0000000..7b42c27 --- /dev/null +++ b/odoo/README.md @@ -0,0 +1,42 @@ +odoo +==== + +[Odoo][1] is a suite of web based open source business apps. + +## docker-compose.yml + +```yaml +odoo: + image: odoo:10.0 + 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 +$ mkdir -p 777 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 +``` + +[1]: https://www.odoo.com diff --git a/odoo/docker-compose.yml b/odoo/docker-compose.yml new file mode 100644 index 0000000..b48061c --- /dev/null +++ b/odoo/docker-compose.yml @@ -0,0 +1,19 @@ +odoo: + image: odoo:10.0 + 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