Running Odoo in a container

To deploy the Docker image on the production server, things are much easier :

  1. Copy the Docker image to the production server, using scp or a USB key
  2. Load the image on the server like this:
$ gunzip -c yourproject.image.tar.gz | docker load
  1. Copy the docker-compose.yml file to the production server, and place it for instance in /srv/odoo/yourproject/:
$mkdir -p /srv/odoo/yourproject
$ mv docker-compose.yml /srv/odoo/yourproject
  1. Start the Docker composition:
$ docker-compose up -d