Install Odoo as a Container for Testing - mechwarrior82/eve-online-odoo-integration GitHub Wiki

Sure! Here are detailed instructions for setting up Odoo on Windows using Docker:

Step 1: Install Docker Desktop

  1. Download Docker Desktop: Go to the Docker website and download Docker Desktop for Windows.
  2. Install Docker Desktop: Follow the installation instructions provided by Docker. This will include installing Docker Engine, Docker CLI, and Docker Compose.

Step 2: Pull the Odoo Docker Image

  1. Open Command Prompt: Press Win + R, type cmd, and press Enter.
  2. Pull the Odoo Image: Run the following command to pull the latest Odoo image from Docker Hub:
    docker pull odoo:latest
    

Step 3: Create a Docker Compose File

  1. Create a Directory: Create a directory for your Odoo project, for example, C:\odoo\odoo_project.
  2. Create a docker-compose.yml File: Inside this directory, create a file named docker-compose.yml and add the following content:
    version: '3'
    services:
      db:
        image: postgres:15
        environment:
          - POSTGRES_USER=odoo
          - POSTGRES_PASSWORD=odoo
          - POSTGRES_DB=postgres
        volumes:
          - odoo-db:/var/lib/postgresql/data
      odoo:
        image: odoo:latest
        depends_on:
          - db
        ports:
          - "8069:8069"
        volumes:
          - odoo-data:/var/lib/odoo
        environment:
          - HOST=db
          - USER=odoo
          - PASSWORD=odoo
          - DB_NAME=postgres
    volumes:
      odoo-db:
      odoo-data:
    
  3. Create Volumes: Ensure the volumes odoo-db and odoo-data are created. You can do this by running:
    docker volume create odoo-db
    docker volume create odoo-data
    

Step 4: Start the Docker Containers

  1. Navigate to the Project Directory: Open Command Prompt and navigate to your project directory:
    cd C:\odoo\odoo_project
    
  2. Start the Containers: Run the following command to start the Odoo and PostgreSQL containers:
    docker-compose up -d
    
  3. Verify the Containers: Check the status of the containers to ensure they are running:
    docker ps
    

Step 5: Access Odoo

  1. Open Browser: Open your web browser and go to http://localhost:8069.
  2. Set Up Odoo: Follow the on-screen instructions to set up Odoo, including creating a new database, setting up the company, and logging in.

Step 6: Install Custom Addons

  1. Navigate to Apps: In the Odoo interface, go to the Apps menu.
  2. Update Apps List: Click on the "Update Apps List" button to refresh the list of available modules.
  3. Install Addons: Search for and install your custom Odoo module (odoo_eve_integration).

Summary

  • Install Docker Desktop: Download and install Docker Desktop.
  • Pull Odoo Image: Pull the latest Odoo image from Docker Hub.
  • Create Docker Compose File: Set up a docker-compose.yml file with the necessary configurations.
  • Start Containers: Use Docker Compose to start the Odoo and PostgreSQL containers.
  • Access Odoo: Open your browser and set up Odoo.
  • Install Addons: Install your custom Odoo module.

By following these steps, you and your friend should be able to set up Odoo on Windows using Docker. If you encounter any issues or need further assistance, feel free to ask!