diff --git a/templates/prod.yaml.j2 b/templates/prod.yaml.j2
index ee0c1c60f6c55fbc0c282ebe629ffe24fb856ed7..fafe33f4a1e396770ddade4911ab858928b4adb4 100644
--- a/templates/prod.yaml.j2
+++ b/templates/prod.yaml.j2
@@ -65,7 +65,7 @@ services:
             POSTGRES_USER: "{{ odoo_prod.db_user }}"
             POSTGRES_PASSWORD: "{{ odoo_prod.db_pass }}"
 {% if postgres_options is defined %}
-            PGOPTIONS: "{{ postgres_options }}"
+        command: {{ postgres_options }}
 {% endif %}
         labels:
             co.elastic.logs/module: postgresql