Last active
February 28, 2025 06:49
-
-
Save visionarylab/32d15e94e4cc69450552546248431e43 to your computer and use it in GitHub Desktop.
erp-odoo-with-docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://labs.iximiuz.com/premium | |
https://kodekloud.com/community/t/extend-the-lab-time/397106 | |
https://kodekloud.com/community/t/what-are-the-limitations-for-playgrounds/462284 | |
https://help.pluralsight.com/hc/en-us/articles/24425549311380-Cloud-sandboxes-getting-started#access (4 hour and 8 hour team plan) | |
https://docs.getcommandeer.com/releases/latest/version-1.8.0-3-23-2021/#view-container-and-volume-files | |
https://dev.to/siddhantkcode/binary-embedding-shrink-vector-storage-by-95-5e0l | |
https://myscale.com/blog/full-text-search-battle-weaviate-qdrant/ | |
###simplified | |
https://ioflood.com/blog/install-odoo-linux/ | |
#docker compose | |
https://jortdevreeze.com/blog/odoo-2/dock-stack-launch-odoo-deployment-with-docker-and-portainer-4 | |
#odoo18 | |
https://www.technaureus.com/blog-detail/how-to-install-odoo-18-on-ubuntu-2004 | |
https://www.devzero.io/docs/starter-templates/build-tools/docker | |
#docker volume backup - filebase | |
https://www.digitalocean.com/blog/backup-management-docker | |
https://bitlaunch.io/blog/how-to-transfer-docker-volumes-between-your-vps-and-local-pc/ | |
https://www.docker.com/blog/back-up-and-share-docker-volumes-with-this-extension/ | |
https://davquar.it/post/devops/backblaze-b2-docker-backups-terraform/ | |
https://hub.docker.com/extensions/docker/volumes-backup-extension | |
##docker-volume-plugin (IPFS NFS, azure , smb, digital ocean, google, ceph etc) | |
https://docs.docker.com/engine/extend/legacy_plugins/#/volume-plugins | |
https://github.com/CWSpear/local-persist | |
https://hub.docker.com/r/mochoa/s3fs-volume-plugin | |
https://www.digitalocean.com/community/tutorials/how-to-share-data-between-docker-containers | |
## | |
https://dev.to/pwd9000/hosting-your-self-hosted-runners-on-github-codespaces-2elc | |
https://www.herlitz.io/2024/03/05/deploy-portainer-and-portainer-agent-using-docker-compose/ | |
https://www.reddit.com/r/portainer/comments/1b3skir/turn_a_portainer_instance_into_a_portainer_agent/ | |
https://medium.com/@jorgeceballosgarcia/securing-your-docker-environment-backups-with-portainer-and-duplicati-2352cb9aebe7 | |
https://github.com/devcontainers/features/tree/main/src/docker-outside-of-docker | |
https://github.com/budtmo/docker-android/pull/417/files | |
https://medium.com/@cbates255/docker-container-with-bind-mount-to-s3-1d000486d44d | |
https://fabric.guru/sync-multiple-fabric-workspaces-with-github-using-semantic-link-labs | |
https://github.com/owncloud/core/issues/40940 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Step 1. Update the System | |
sudo apt update | |
Step 2. Install Python and its dependencies | |
sudo apt install -y build-essential wget python3-dev python3-venv python3-wheel libfreetype6-dev libxml2-dev libzip-dev libldap2-dev libsasl2-dev python3-setuptools node-less libjpeg-dev zlib1g-dev libpq-dev libxslt1-dev libldap2-dev libtiff5-dev libjpeg8-dev libopenjp2-7-dev liblcms2-dev libwebp-dev libharfbuzz-dev libfribidi-dev libxcb1-dev | |
Step 3: Create Odoo User | |
sudo useradd -m -d /opt/odoo -U -r -s /bin/bash odoo | |
//sudo useradd -m -U -r -d /opt/odoo18 -s /bin/bash odoo18 | |
Step 3. Install NPM and Node CSS plugins | |
sudo apt-get install npm -y | |
npm install -g less less-plugin-clean-css | |
sudo apt-get install node-less -y | |
Step 4. Install Wkhtmltopdf | |
sudo apt-get install wkhtmltopdf -y | |
sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin | |
Step 5. Install PostgreSQL database service | |
sudo apt install postgresql -y | |
sudo systemctl status postgresql | |
sudo su - postgres -c "createuser -s odoo" | |
or | |
sudo systemctl start postgresql && sudo systemctl enable postgresql | |
sudo systemctl status postgresql | |
sudo su - postgres -c "createuser -s odoo18" | |
Step 6. Create Odoo System and Database User | |
Step 7. Install and Configure Odoo 18 | |
sudo su - odoo18 | |
odoo18@host:~$ pwd | |
/opt/odoo18 | |
git clone https://www.github.com/odoo/odoo --depth 1 --branch 18.0 /opt/odoo18/odoo18 | |
Step 7.1 | |
python3.12 -m venv odoo18-venv | |
source odoo18-venv/bin/activate | |
pip install --upgrade pip | |
pip3 install wheel | |
pip3 install -r odoo18/requirements.txt | |
deactivate | |
#### | |
mkdir /opt/odoo18/odoo18-custom-addons | |
chown -R odoo18:odoo18 /opt/odoo18/odoo18-custom-addons | |
mkdir -p /var/log/odoo18/ && touch /var/log/odoo18/odoo18.log | |
chown -R odoo18:odoo18 /var/log/odoo18/ | |
Step 8. Create an Odoo configuration file | |
sudo nano /etc/odoo.conf | |
[options] | |
; Database operations password: | |
admin_passwd = PASSWORD | |
db_host = False | |
db_port = False | |
db_user = odoo | |
db_password = False | |
addons_path = /opt/odoo/odoo/addons,/opt/odoo/odoo-custom-addons | |
Step 9. Create an Odoo Service file | |
sudo nano /etc/systemd/system/odoo.service | |
[Unit] | |
Description=Odoo | |
Requires=postgresql.service | |
After=network.target postgresql.service | |
[Service] | |
Type=simple | |
SyslogIdentifier=odoo | |
PermissionsStartOnly=true | |
User=odoo | |
Group=odoo | |
ExecStart=/opt/odoo/odoo-venv/bin/python3 /opt/odoo/odoo/odoo-bin -c /etc/odoo.conf | |
StandardOutput=journal+console | |
[Install] | |
WantedBy=multi-user.target | |
Step 10. Manage Odoo service | |
sudo systemctl daemon-reload | |
sudo systemctl enable --now odoo | |
sudo systemctl status odoo | |
sudo journalctl -u odoo | |
http://localhost:8069 | |
Odoo requires a total of 2GB RAM. Add the information to the /etc/odoo.conf file: | |
[options] | |
limit_memory_hard = 2684354560 | |
limit_memory_soft = 2147483648 | |
limit_request = 8192 | |
limit_time_cpu = 600 | |
limit_time_real = 1200 | |
max_cron_threads = 1 | |
workers = 6 | |
sudo systemctl restart odoo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment