Skip to content

caprosoft/docker-odoo19

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Odoo 19 (Docker) installation script

🧩 Prerequisites

Make sure you have:

  • GNU/Linux (any recent distribution)

  • Docker installed and running. You can check by running:

    sudo docker --version
  • Git installed You can check by running:

    sudo git --version

🚀 Run the Script

Follow these steps to clone the repository and run the script:

  1. Download the project from GitHub
git clone https://github.com/caprosoft/docker-odoo19 
  1. Enter the project folder
cd docker-odoo19
  1. Make the script executable
sudo chmod +x odoo19.sh
  1. Run the script
sudo ./odoo19.sh

After running, Odoo will be available at http://localhost:8069


🐳 Script Reference (odoo19.sh)

The script runs two Docker containers: one for the PostgreSQL database and one for Odoo.

#!/bin/sh

sudo docker run -d -v odoo-db:/var/lib/postgresql/data \
  -e POSTGRES_USER=odoo \
  -e POSTGRES_PASSWORD=odoo \
  -e POSTGRES_DB=postgres \
  --name db postgres:15

sudo docker run -d -v odoo-data:/var/lib/odoo \
  -p 8069:8069 \
  --name odoo \
  --link db:db \
  -t odoo

💾 About Docker Volumes

  • odoo-db stores the PostgreSQL data, keeping it persistent even if the container is removed.
  • odoo-data stores the Odoo application data, ensuring that your configurations and files are preserved.

🧹 Stop, Remove, and Re-run Containers

If you need to stop or remove the containers and volumes, use:

# Stop containers
sudo docker stop odoo db

# Remove containers
sudo docker rm odoo db

# (Optional) Remove volumes
sudo docker volume rm odoo-data odoo-db

To recreate and re-run everything after cleanup, simply execute again:

sudo ./odoo19.sh

This will rebuild the containers and restart your Odoo environment from scratch.

About

Script for install and start Odoo 19 in Docker

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages