|
|
@ -137,6 +137,13 @@ odoo: |
|
|
|
# options: |
|
|
|
# email_from: me@example.com |
|
|
|
|
|
|
|
## Create a direct access from 0.0.0.0:80 |
|
|
|
relations: |
|
|
|
web-proxy: |
|
|
|
apache: |
|
|
|
## be sure to add the following domain to your /etc/hosts |
|
|
|
domain: odoo |
|
|
|
|
|
|
|
EOF |
|
|
|
#+END_SRC |
|
|
|
|
|
|
@ -146,6 +153,42 @@ You can then launch the service(s) with: |
|
|
|
compose up |
|
|
|
#+END_SRC |
|
|
|
|
|
|
|
**** Access odoo from your browser |
|
|
|
|
|
|
|
You should access your odoo through the web-proxy, but if this is not |
|
|
|
what you want, you can access it directly. |
|
|
|
|
|
|
|
***** Using the web-proxy to access odoo |
|
|
|
|
|
|
|
You'll need to modify your =/etc/hosts= to include the domain name 'odoo' |
|
|
|
as a domain name for =127.0.0.1=. |
|
|
|
|
|
|
|
#+BEGIN_SRC shell |
|
|
|
cat <<EOF | sudo tee -a /etc/hosts |
|
|
|
127.0.0.1 odoo |
|
|
|
EOF |
|
|
|
#+END_SRC |
|
|
|
|
|
|
|
This will ask for your password as it need write access to =/etc/hosts=. |
|
|
|
|
|
|
|
You can then use =http://odoo= to access your odoo instance. |
|
|
|
|
|
|
|
***** Direct connection to odoo container |
|
|
|
|
|
|
|
You should be able to point your browser to the ip of the odoo |
|
|
|
container. You can find this IP using =docker-ip=. |
|
|
|
|
|
|
|
If you are lazy, this might work: |
|
|
|
|
|
|
|
#+BEGIN_SRC shell |
|
|
|
ODOO_IP=$(docker-ip | grep odoo | sed -r 's/ +/ /g' | cut -f 3 -d " ") |
|
|
|
echo "Odoo is up and running on: http://$ODOO_IP:8069" |
|
|
|
#+END_SRC |
|
|
|
|
|
|
|
If your setup allow direct access from the host running your browser |
|
|
|
to the container's network, then you can point your browser towards |
|
|
|
the given address. |
|
|
|
|
|
|
|
|
|
|
|
*** using =docker-compose= |
|
|
|
|
|
|
|