diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000000..c09ff61e2bd --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,17 @@ +services: + odoo: + image: odoo:18.0 + ports: + - "8069:8069" + volumes: + - .:/mnt/extra-addons + - ./odoo.conf:/etc/odoo/odoo.conf + depends_on: + - db + db: + image: postgres:16 + environment: + - POSTGRES_DB=postgres + - POSTGRES_USER=odoo + - POSTGRES_PASSWORD=odoo + - PGDATA=/var/lib/postgresql/data/pgdata diff --git a/odoo.conf b/odoo.conf new file mode 100644 index 00000000000..2a59c762843 --- /dev/null +++ b/odoo.conf @@ -0,0 +1,47 @@ +[options] +addons_path = /mnt/extra-addons +data_dir = /var/lib/odoo +; admin_passwd = admin +; csv_internal_sep = , +; db_maxconn = 64 +; db_name = erp +db_host = db +; dbfilter = erp +db_port = 5432 +db_user = odoo +db_password = odoo +db_maxconn = 250 +max_cron_threads = 2 +server_wide_modules=web +; redis_session=True +; redis_host=sessions +; redis_port=6379 +; db_template = template1 +; dbfilter = .* +; debug_mode = False +; email_from = False +; limit_memory_hard = 268435456 +; imit_memory_soft = 2147483648 +; limit_request = 8192 +limit_time_cpu = 600 +limit_time_real = 1200 +; list_db = True +; log_db = False +; log_handler = [':INFO'] +; log_level = info +; logfile = None +; longpolling_port = 8072 +; osv_memory_age_limit = 1.0 +; osv_memory_count_limit = False +; smtp_password = False +; smtp_port = 25 +; smtp_server = localhost +; smtp_ssl = False +; smtp_user = False +; workers = 0 +; xmlrpc = True +; xmlrpc_interface = +; xmlrpc_port = 8069 +; xmlrpcs = True +; xmlrpcs_interface = +; xmlrpcs_port = 8071