- Odoo 11 Development Cookbook(Second Edition)
- Holger Brunn Alexandre Fayolle
- 78字
- 2021-06-25 22:48:39
Running Odoo in a container
To deploy the Docker image on the production server, things are much easier :
- Copy the Docker image to the production server, using scp or a USB key
- Load the image on the server like this:
$ gunzip -c yourproject.image.tar.gz | docker load
- 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
- Start the Docker composition:
$ docker-compose up -d