Skip to content

Instantly share code, notes, and snippets.

@metodribic
Created September 2, 2020 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metodribic/e0f1e34a868814f7ec0d1d3e43b524f0 to your computer and use it in GitHub Desktop.
Save metodribic/e0f1e34a868814f7ec0d1d3e43b524f0 to your computer and use it in GitHub Desktop.
Docker Odoo commands

Advanced

Image is available on docker hub

Postgres

docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name db postgres:10

Odoo

docker run -d -v /absolute-path-to-addons/my_module:/mnt/extra-addons -p 8069:8069 --name odoo --link db:db -t odoo
docker run -d -v /absolute-path-to-addons:/mnt/extra-addons -v /absolute-path-to-config:/etc/odoo -p 8069:8069 --name odoo --link db:db -t odoo

Connect to docker file system"

docker exec -u root -it odoo /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment