Odoo Docker Compose V2 - mechwarrior82/eve-online-odoo-integration GitHub Wiki
Absolutely! Here's a comprehensive guide for your friend to set up their Docker environment to match yours.
Step-by-Step Guide for Setting Up Docker Environment
Step 1: Install Docker Desktop
- Download Docker Desktop: Go to the Docker website and download Docker Desktop for Windows.
- Install Docker Desktop: Follow the installation instructions. Ensure Docker Desktop is running.
Step 2: Set Up Project Directory
- Create Project Directory: Create a directory for your Odoo project, e.g.,
C:\odoo\odoo_project
.
Step 3: Create Docker Compose File
- Create
docker-compose.yml
: In the project directory, create a file nameddocker-compose.yml
with 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 - C:\odoo\addons:/mnt/extra-addons # Map local directory to addons folder - ./odoo.conf:/etc/odoo/odoo.conf # Ensure the config file is mounted environment: - HOST=db - USER=odoo - PASSWORD=odoo - DB_NAME=postgres volumes: odoo-db: odoo-data:
Step 4: Create Odoo Configuration File
- Create
odoo.conf
: In the same directory asdocker-compose.yml
, create a file namedodoo.conf
with the following content:[options] db_host = db db_port = 5432 db_user = odoo db_password = odoo db_name = postgres addons_path = /usr/lib/python3/dist-packages/odoo/addons, /var/lib/odoo/addons/18.0, /mnt/extra-addons
Step 5: Start Docker Containers
- Navigate to Project Directory: Open Command Prompt or your terminal and navigate to the project directory:
cd C:\odoo\odoo_project
- Start Containers: Run the following command to start the Docker containers:
docker-compose up -d
Step 6: Initialize Odoo
- Open Odoo in Browser: Go to
http://localhost:8069
. - Create Database:
- Follow the on-screen instructions to create a new database.
- Use the default database name (
postgres
), set an admin email, and choose a strong password for the admin account.
Step 7: Test the Endpoint
- Test Endpoint Using Curl: Use the following command to test the endpoint:
curl -X POST -H "Content-Type: application/json" -d '{"character_id": "123456", "character_name": "Test Character", "email": "[email protected]"}' http://localhost:8069/eve/auth
Summary
- Install Docker Desktop: Download and install Docker Desktop.
- Set Up Project Directory: Create a directory for the Odoo project.
- Create Docker Compose File: Add the necessary configurations.
- Create Odoo Configuration File: Ensure the configuration matches the setup.
- Start Containers: Use Docker Compose to bring up the containers.
- Initialize Odoo: Set up Odoo and create a new database.
- Test Endpoint: Verify the endpoint is accessible.
By following these instructions, your friend should be able to set up their Docker environment to match yours. Let me know if you need any further assistance or if there are any specific details to adjust! 😊