branch4
This commit is contained in:
parent
fb73602c6e
commit
509fe7a185
2
.vscode/ansible.cfg
vendored
2
.vscode/ansible.cfg
vendored
@ -1,2 +0,0 @@
|
||||
[defaults]
|
||||
inventory = ./inventory/hosts
|
56
.vscode/deploy.yml
vendored
56
.vscode/deploy.yml
vendored
@ -1,5 +1,51 @@
|
||||
- name: Deploy Docker Compose stack
|
||||
hosts: all
|
||||
become: yes
|
||||
roles:
|
||||
- docker-compose
|
||||
- hosts: localhost
|
||||
become: true
|
||||
connection: local
|
||||
tasks:
|
||||
# Installation des dépendances système
|
||||
- name: Update APT package index
|
||||
apt:
|
||||
update_cache: yes
|
||||
|
||||
- name: Install Python 3 and pip
|
||||
apt:
|
||||
name:
|
||||
- python3
|
||||
- python3-pip
|
||||
state: present
|
||||
|
||||
- name: Install Docker
|
||||
apt:
|
||||
name: docker.io
|
||||
state: present
|
||||
|
||||
- name: Install Docker Compose
|
||||
apt:
|
||||
name: docker-compose
|
||||
state: present
|
||||
|
||||
- name: Ensure Docker service is started
|
||||
service:
|
||||
name: docker
|
||||
state: started
|
||||
enabled: true
|
||||
|
||||
# Chargement des variables depuis les fichiers YAML
|
||||
- name: Load variables from volumes.yml
|
||||
set_fact:
|
||||
volume_vars: "{{ lookup('file', 'volumes.yml') | from_yaml }}"
|
||||
|
||||
- name: Load variables from secrets.yml
|
||||
set_fact:
|
||||
secret_vars: "{{ lookup('file', 'secrets.yml') | from_yaml }}"
|
||||
|
||||
# Création des volumes Docker
|
||||
- name: Create volumes
|
||||
command: docker volume create {{ item.name }}
|
||||
with_items: "{{ volume_vars.volumes }}"
|
||||
changed_when: false
|
||||
|
||||
# Démarrage des conteneurs avec Docker Compose
|
||||
- name: Run docker-compose up -d
|
||||
command: docker-compose up -d
|
||||
|
@ -1,96 +1,102 @@
|
||||
services:
|
||||
admin:
|
||||
image: postgres:latest
|
||||
container_name: admin
|
||||
environment:
|
||||
POSTGRES_DB: admin
|
||||
POSTGRES_USER: admin
|
||||
POSTGRES_PASSWORD: admin
|
||||
ports:
|
||||
- "5432:5432"
|
||||
POSTGRES_DB: admin
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
- postgres-volume:/var/lib/postgresql/data
|
||||
#- ./files/postgresql.conf:/docker-entrypoint-initdb.d/-postgresql.conf
|
||||
- ./files/pg_stat_statements.sql:/docker-entrypoint-initdb.d/pg_stat_statements.sql
|
||||
|
||||
networks:
|
||||
- testNetwork
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U admin -d admin"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
pgadmin:
|
||||
image: dpage/pgadmin4:latest
|
||||
container_name: pgadmin
|
||||
ports:
|
||||
- "5050:80"
|
||||
environment:
|
||||
PGADMIN_DEFAULT_EMAIL: admin@admin.com
|
||||
PGADMIN_DEFAULT_PASSWORD: admin
|
||||
ports:
|
||||
- "5050:80"
|
||||
networks:
|
||||
- testNetwork
|
||||
|
||||
prometheus_exporter:
|
||||
build:
|
||||
context: ./docker
|
||||
dockerfile: exporter.dockerfile
|
||||
context: .
|
||||
dockerfile: docker/exporter.dockerfile
|
||||
container_name: prometheus_exporter
|
||||
ports:
|
||||
- "8000:8000"
|
||||
networks:
|
||||
- testNetwork
|
||||
depends_on:
|
||||
- admin
|
||||
|
||||
odoo:
|
||||
build:
|
||||
context: ./docker
|
||||
dockerfile: odoo.dockerfile
|
||||
context: .
|
||||
dockerfile: docker/odoo.dockerfile
|
||||
container_name: odoo
|
||||
ports:
|
||||
- "8069:8069"
|
||||
environment:
|
||||
HOST: admin
|
||||
USER: admin
|
||||
PASSWORD: admin
|
||||
DATABASE: admin
|
||||
ODOO_PASSWORD: admin
|
||||
ports:
|
||||
- "8069:8069"
|
||||
volumes:
|
||||
- ./odoo.conf:/etc/odoo/odoo.conf
|
||||
- ./files/odoo.conf:/etc/odoo/odoo.conf
|
||||
- ./logs/odoo:/var/log/odoo
|
||||
networks:
|
||||
- testNetwork
|
||||
depends_on:
|
||||
- admin
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana:latest
|
||||
container_name: grafana
|
||||
ports:
|
||||
- "3000:3000"
|
||||
environment:
|
||||
GF_SECURITY_ADMIN_PASSWORD: grafana_pwd
|
||||
GF_DATASOURCES_PROMETHEUS_URL: http://prometheus:9090
|
||||
ports:
|
||||
- "3000:3000"
|
||||
networks:
|
||||
- testNetwork
|
||||
depends_on:
|
||||
- prometheus
|
||||
|
||||
prometheus:
|
||||
image: prom/prometheus:latest
|
||||
container_name: prometheus
|
||||
ports:
|
||||
- "9090:9090"
|
||||
volumes:
|
||||
- prometheus-data:/prometheus
|
||||
- ./prometheus.yml:/etc/prometheus/prometheus.yml
|
||||
- ./files/prometheus.yml:/etc/prometheus/prometheus.yml
|
||||
networks:
|
||||
- testNetwork
|
||||
|
||||
fluentd:
|
||||
image: fluent/fluentd:v1.13-1
|
||||
container_name: fluentd
|
||||
ports:
|
||||
- "24224:24224"
|
||||
volumes:
|
||||
- ./logs/odoo:/var/log/odoo
|
||||
- ./fluent.conf:/fluentd/etc/fluent.conf
|
||||
- ./files/fluent.conf:/fluentd/etc/fluent.conf
|
||||
networks:
|
||||
- testNetwork
|
||||
depends_on:
|
||||
- odoo
|
||||
|
||||
backup:
|
||||
build:
|
||||
context: ./docker
|
||||
dockerfile: backup.dockerfile
|
||||
context: .
|
||||
dockerfile: docker/backup.dockerfile
|
||||
container_name: backup
|
||||
environment:
|
||||
POSTGRES_HOST: admin
|
||||
POSTGRES_DB: admin
|
||||
@ -100,14 +106,12 @@ services:
|
||||
- backup-data:/backup
|
||||
networks:
|
||||
- testNetwork
|
||||
depends_on:
|
||||
- admin
|
||||
|
||||
networks:
|
||||
testNetwork:
|
||||
driver: bridge
|
||||
|
||||
volumes:
|
||||
postgres-data:
|
||||
postgres-volume:
|
||||
prometheus-data:
|
||||
backup-data:
|
||||
backup-data:
|
@ -2,7 +2,7 @@
|
||||
FROM alpine:latest as backup_custom
|
||||
|
||||
# Copy the entrypoint script into the container
|
||||
COPY entrypoint_backup.sh /usr/local/bin/entrypoint_backup.sh
|
||||
COPY docker/entrypoint_backup.sh /usr/local/bin/entrypoint_backup.sh
|
||||
|
||||
# Switch to root user for setup
|
||||
USER root
|
@ -18,7 +18,7 @@ RUN apt-get update && \
|
||||
RUN mkdir /app/logs
|
||||
|
||||
# Copy the Python script into the container
|
||||
COPY pg_metrics_exporter.py /app/
|
||||
COPY docker/pg_metrics_exporter.py /app/
|
||||
|
||||
# Set permissions for log directory (if required)
|
||||
RUN chmod 755 /app/logs
|
@ -2,7 +2,7 @@
|
||||
FROM odoo:latest as odoo-custom
|
||||
|
||||
# Copy the entrypoint script into the container
|
||||
COPY entrypoint_odoo.sh /usr/local/bin/entrypoint_odoo.sh
|
||||
COPY docker/entrypoint_odoo.sh /usr/local/bin/entrypoint_odoo.sh
|
||||
|
||||
USER root
|
||||
|
5
.vscode/extensions.json
vendored
5
.vscode/extensions.json
vendored
@ -1,5 +0,0 @@
|
||||
{
|
||||
"recommendations": [
|
||||
"redhat.ansible"
|
||||
]
|
||||
}
|
13
.vscode/files/pg_stat_statements.sql
vendored
Normal file
13
.vscode/files/pg_stat_statements.sql
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
-- Configuration nécessaire au démarrage
|
||||
ALTER SYSTEM SET shared_preload_libraries = 'pg_stat_statements';
|
||||
ALTER SYSTEM SET compute_query_id = on;
|
||||
|
||||
CREATE EXTENSION IF NOT EXISTS pg_stat_statements;
|
||||
|
||||
-- Paramètres de l'extension
|
||||
ALTER SYSTEM SET pg_stat_statements.max = 10000;
|
||||
ALTER SYSTEM SET pg_stat_statements.track = 'all';
|
||||
ALTER SYSTEM SET pg_stat_statements.save = 'on';
|
||||
|
||||
-- Rechargement de la configuration
|
||||
SELECT pg_reload_conf();
|
2
.vscode/files/postgresql.conf
vendored
Normal file
2
.vscode/files/postgresql.conf
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
shared_preload_libraries = 'pg_stat_statements'
|
||||
compute_query_id = on
|
193
.vscode/logs/odoo/odoo.log
vendored
Normal file
193
.vscode/logs/odoo/odoo.log
vendored
Normal file
@ -0,0 +1,193 @@
|
||||
2024-12-19 15:22:55,716 8 INFO ? odoo: Odoo version 18.0-20241209
|
||||
2024-12-19 15:22:55,717 8 INFO ? odoo: Using configuration file at /etc/odoo/odoo.conf
|
||||
2024-12-19 15:22:55,718 8 INFO ? odoo: addons paths: ['/usr/lib/python3/dist-packages/odoo/addons', '/root/.local/share/Odoo/addons/18.0']
|
||||
2024-12-19 15:22:55,718 8 INFO ? odoo: database: admin@admin:5432
|
||||
2024-12-19 15:22:55,997 8 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltopdf binary at /usr/local/bin/wkhtmltopdf
|
||||
2024-12-19 15:22:56,039 8 INFO ? odoo.addons.base.models.ir_actions_report: Will use the Wkhtmltoimage binary at /usr/local/bin/wkhtmltoimage
|
||||
2024-12-19 15:22:56,239 8 INFO ? odoo.service.server: HTTP service (werkzeug) running on ed2f9a3c30ce:8069
|
||||
2024-12-19 15:22:56,254 8 INFO admin odoo.modules.loading: init db
|
||||
2024-12-19 15:22:57,136 8 INFO admin odoo.modules.loading: loading 1 modules...
|
||||
2024-12-19 15:22:57,137 8 INFO admin odoo.modules.loading: Loading module base (1/1)
|
||||
2024-12-19 15:22:57,153 8 INFO admin odoo.modules.registry: module base: creating or updating database tables
|
||||
2024-12-19 15:22:57,343 8 INFO admin odoo.models: Prepare computation of ir.module.module.menus_by_module
|
||||
2024-12-19 15:22:57,344 8 INFO admin odoo.models: Prepare computation of ir.module.module.reports_by_module
|
||||
2024-12-19 15:22:57,345 8 INFO admin odoo.models: Prepare computation of ir.module.module.views_by_module
|
||||
2024-12-19 15:22:57,402 8 INFO admin odoo.models: Prepare computation of res.partner.user_id
|
||||
2024-12-19 15:22:57,403 8 INFO admin odoo.models: Prepare computation of res.partner.commercial_partner_id
|
||||
2024-12-19 15:22:57,404 8 INFO admin odoo.models: Prepare computation of res.partner.complete_name
|
||||
2024-12-19 15:22:57,405 8 INFO admin odoo.models: Prepare computation of res.partner.company_registry
|
||||
2024-12-19 15:22:57,405 8 INFO admin odoo.models: Prepare computation of res.partner.commercial_company_name
|
||||
2024-12-19 15:22:57,405 8 INFO admin odoo.models: Prepare computation of res.partner.partner_share
|
||||
2024-12-19 15:22:57,425 8 INFO admin odoo.models: Prepare computation of res.currency.decimal_places
|
||||
2024-12-19 15:22:57,440 8 INFO admin odoo.models: Prepare computation of res.company.uses_default_logo
|
||||
2024-12-19 15:22:57,441 8 INFO admin odoo.models: Prepare computation of res.company.logo_web
|
||||
2024-12-19 15:22:57,443 8 INFO admin odoo.models: Computing parent_path for table res_company...
|
||||
2024-12-19 15:22:57,459 8 INFO admin odoo.models: Prepare computation of res.users.signature
|
||||
2024-12-19 15:22:57,460 8 INFO admin odoo.models: Prepare computation of res.users.share
|
||||
2024-12-19 15:22:58,447 8 INFO admin odoo.modules.loading: loading base/data/res_bank.xml
|
||||
2024-12-19 15:22:58,456 8 INFO admin odoo.modules.loading: loading base/data/res.lang.csv
|
||||
2024-12-19 15:22:58,485 8 INFO admin odoo.modules.loading: loading base/data/res_lang_data.xml
|
||||
2024-12-19 15:22:58,514 8 INFO admin odoo.modules.loading: loading base/data/res_partner_data.xml
|
||||
2024-12-19 15:22:58,555 8 INFO admin odoo.modules.loading: loading base/data/res_currency_data.xml
|
||||
2024-12-19 15:22:58,909 8 INFO admin odoo.modules.loading: loading base/data/res_company_data.xml
|
||||
2024-12-19 15:22:58,917 8 INFO admin odoo.modules.loading: loading base/data/res_users_data.xml
|
||||
2024-12-19 15:22:59,570 8 INFO admin odoo.modules.loading: loading base/data/report_paperformat_data.xml
|
||||
2024-12-19 15:22:59,577 8 INFO admin odoo.modules.loading: loading base/data/res_country_data.xml
|
||||
2024-12-19 15:22:59,847 8 INFO admin odoo.modules.loading: loading base/data/ir_demo_data.xml
|
||||
2024-12-19 15:22:59,857 8 INFO admin odoo.modules.loading: loading base/security/base_groups.xml
|
||||
2024-12-19 15:23:00,232 8 INFO admin odoo.modules.loading: loading base/security/base_security.xml
|
||||
2024-12-19 15:23:00,324 8 INFO admin odoo.modules.loading: loading base/views/base_menus.xml
|
||||
2024-12-19 15:23:00,374 8 INFO admin odoo.modules.loading: loading base/views/decimal_precision_views.xml
|
||||
2024-12-19 15:23:00,386 8 INFO admin odoo.modules.loading: loading base/views/res_config_views.xml
|
||||
2024-12-19 15:23:00,391 8 INFO admin odoo.modules.loading: loading base/data/res.country.state.csv
|
||||
2024-12-19 15:23:00,830 8 INFO admin odoo.modules.loading: loading base/views/ir_actions_views.xml
|
||||
2024-12-19 15:23:00,924 8 INFO admin odoo.modules.loading: loading base/views/ir_asset_views.xml
|
||||
2024-12-19 15:23:00,938 8 INFO admin odoo.modules.loading: loading base/views/ir_config_parameter_views.xml
|
||||
2024-12-19 15:23:00,957 8 INFO admin odoo.modules.loading: loading base/views/ir_cron_views.xml
|
||||
2024-12-19 15:23:00,977 8 INFO admin odoo.modules.loading: loading base/views/ir_cron_trigger_views.xml
|
||||
2024-12-19 15:23:00,988 8 INFO admin odoo.modules.loading: loading base/views/ir_filters_views.xml
|
||||
2024-12-19 15:23:01,002 8 INFO admin odoo.modules.loading: loading base/views/ir_mail_server_views.xml
|
||||
2024-12-19 15:23:01,017 8 INFO admin odoo.modules.loading: loading base/views/ir_model_views.xml
|
||||
2024-12-19 15:23:01,116 8 INFO admin odoo.modules.loading: loading base/views/ir_attachment_views.xml
|
||||
2024-12-19 15:23:01,132 8 INFO admin odoo.modules.loading: loading base/views/ir_rule_views.xml
|
||||
2024-12-19 15:23:01,146 8 INFO admin odoo.modules.loading: loading base/views/ir_sequence_views.xml
|
||||
2024-12-19 15:23:01,160 8 INFO admin odoo.modules.loading: loading base/views/ir_ui_menu_views.xml
|
||||
2024-12-19 15:23:01,174 8 INFO admin odoo.modules.loading: loading base/views/ir_ui_view_views.xml
|
||||
2024-12-19 15:23:01,204 8 INFO admin odoo.modules.loading: loading base/views/ir_default_views.xml
|
||||
2024-12-19 15:23:01,217 8 INFO admin odoo.modules.loading: loading base/data/ir_config_parameter_data.xml
|
||||
2024-12-19 15:23:01,220 8 INFO admin odoo.modules.loading: loading base/data/ir_cron_data.xml
|
||||
2024-12-19 15:23:01,229 8 INFO admin odoo.modules.loading: loading base/report/ir_model_report.xml
|
||||
2024-12-19 15:23:01,232 8 INFO admin odoo.modules.loading: loading base/report/ir_model_templates.xml
|
||||
2024-12-19 15:23:01,238 8 INFO admin odoo.modules.loading: loading base/views/ir_logging_views.xml
|
||||
2024-12-19 15:23:01,257 8 INFO admin odoo.modules.loading: loading base/views/ir_qweb_widget_templates.xml
|
||||
2024-12-19 15:23:01,267 8 INFO admin odoo.modules.loading: loading base/views/ir_module_views.xml
|
||||
2024-12-19 15:23:01,302 8 INFO admin odoo.modules.loading: loading base/data/ir_module_category_data.xml
|
||||
2024-12-19 15:23:01,350 8 INFO admin odoo.modules.loading: loading base/data/ir_module_module.xml
|
||||
2024-12-19 15:23:01,405 8 INFO admin odoo.modules.loading: loading base/report/ir_module_reports.xml
|
||||
2024-12-19 15:23:01,410 8 INFO admin odoo.modules.loading: loading base/report/ir_module_report_templates.xml
|
||||
2024-12-19 15:23:01,416 8 INFO admin odoo.modules.loading: loading base/wizard/base_module_update_views.xml
|
||||
2024-12-19 15:23:01,433 8 INFO admin odoo.modules.loading: loading base/wizard/base_language_install_views.xml
|
||||
2024-12-19 15:23:01,451 8 INFO admin odoo.modules.loading: loading base/wizard/base_import_language_views.xml
|
||||
2024-12-19 15:23:01,471 8 INFO admin odoo.modules.loading: loading base/wizard/base_module_upgrade_views.xml
|
||||
2024-12-19 15:23:01,495 8 INFO admin odoo.modules.loading: loading base/wizard/base_module_uninstall_views.xml
|
||||
2024-12-19 15:23:01,505 8 INFO admin odoo.modules.loading: loading base/wizard/base_export_language_views.xml
|
||||
2024-12-19 15:23:01,518 8 INFO admin odoo.modules.loading: loading base/wizard/base_partner_merge_views.xml
|
||||
2024-12-19 15:23:01,531 8 INFO admin odoo.modules.loading: loading base/data/ir_demo_failure_data.xml
|
||||
2024-12-19 15:23:01,544 8 INFO admin odoo.modules.loading: loading base/views/ir_profile_views.xml
|
||||
2024-12-19 15:23:01,562 8 INFO admin odoo.modules.loading: loading base/views/res_company_views.xml
|
||||
2024-12-19 15:23:01,579 8 INFO admin odoo.modules.loading: loading base/views/res_lang_views.xml
|
||||
2024-12-19 15:23:01,595 8 INFO admin odoo.modules.loading: loading base/views/res_partner_views.xml
|
||||
2024-12-19 15:23:01,666 8 INFO admin odoo.modules.loading: loading base/views/res_bank_views.xml
|
||||
2024-12-19 15:23:01,689 8 INFO admin odoo.modules.loading: loading base/views/res_country_views.xml
|
||||
2024-12-19 15:23:01,720 8 INFO admin odoo.modules.loading: loading base/views/res_currency_views.xml
|
||||
2024-12-19 15:23:01,747 8 INFO admin odoo.modules.loading: loading base/views/res_users_views.xml
|
||||
2024-12-19 15:23:01,826 8 INFO admin odoo.modules.loading: loading base/views/res_device_views.xml
|
||||
2024-12-19 15:23:01,841 8 INFO admin odoo.modules.loading: loading base/views/res_users_identitycheck_views.xml
|
||||
2024-12-19 15:23:01,847 8 INFO admin odoo.modules.loading: loading base/views/res_config_settings_views.xml
|
||||
2024-12-19 15:23:01,854 8 INFO admin odoo.modules.loading: loading base/views/report_paperformat_views.xml
|
||||
2024-12-19 15:23:01,872 8 INFO admin odoo.modules.loading: loading base/security/ir.model.access.csv
|
||||
2024-12-19 15:23:01,953 8 INFO admin odoo.modules.loading: Module base: loading demo
|
||||
2024-12-19 15:23:01,954 8 INFO admin odoo.modules.loading: loading base/data/res_users_demo.xml
|
||||
2024-12-19 15:23:02,974 8 INFO admin odoo.modules.loading: loading base/data/res_partner_bank_demo.xml
|
||||
2024-12-19 15:23:02,978 8 INFO admin odoo.modules.loading: loading base/data/res_currency_demo.xml
|
||||
2024-12-19 15:23:02,985 8 INFO admin odoo.modules.loading: loading base/data/res_currency_rate_demo.xml
|
||||
2024-12-19 15:23:03,152 8 INFO admin odoo.modules.loading: loading base/data/res_bank_demo.xml
|
||||
2024-12-19 15:23:03,157 8 INFO admin odoo.modules.loading: loading base/data/res_partner_demo.xml
|
||||
2024-12-19 15:23:03,309 8 INFO admin odoo.modules.loading: loading base/data/res_partner_image_demo.xml
|
||||
2024-12-19 15:23:03,635 8 INFO admin odoo.modules.loading: Module base loaded in 6.50s, 9216 queries (+9216 other)
|
||||
2024-12-19 15:23:03,636 8 INFO admin odoo.modules.loading: 1 modules loaded in 6.50s, 9216 queries (+9216 extra)
|
||||
2024-12-19 15:23:03,650 8 INFO admin odoo.modules.loading: updating modules list
|
||||
2024-12-19 15:23:03,653 8 INFO admin odoo.addons.base.models.ir_module: ALLOW access to module.update_list on [] to user __system__ #1 via n/a
|
||||
2024-12-19 15:23:04,096 8 INFO admin odoo.modules.loading: loading 12 modules...
|
||||
2024-12-19 15:23:04,097 8 INFO admin odoo.modules.loading: Loading module web (2/12)
|
||||
2024-12-19 15:23:04,113 8 INFO admin odoo.modules.registry: module web: creating or updating database tables
|
||||
2024-12-19 15:23:04,431 8 INFO admin odoo.modules.loading: loading web/security/ir.model.access.csv
|
||||
2024-12-19 15:23:04,439 8 INFO admin odoo.modules.loading: loading web/views/webclient_templates.xml
|
||||
2024-12-19 15:23:04,474 8 INFO admin odoo.modules.loading: loading web/views/report_templates.xml
|
||||
2024-12-19 15:23:04,531 8 INFO admin odoo.modules.loading: loading web/views/base_document_layout_views.xml
|
||||
2024-12-19 15:23:04,542 8 INFO admin odoo.modules.loading: loading web/views/partner_view.xml
|
||||
2024-12-19 15:23:04,548 8 INFO admin odoo.modules.loading: loading web/views/speedscope_template.xml
|
||||
2024-12-19 15:23:04,551 8 INFO admin odoo.modules.loading: loading web/views/neutralize_views.xml
|
||||
2024-12-19 15:23:04,557 8 INFO admin odoo.modules.loading: loading web/data/ir_attachment.xml
|
||||
2024-12-19 15:23:04,561 8 INFO admin odoo.modules.loading: loading web/data/report_layout.xml
|
||||
2024-12-19 15:23:04,591 8 INFO admin odoo.modules.loading: Module web loaded in 0.49s, 1097 queries (+1097 other)
|
||||
2024-12-19 15:23:04,592 8 INFO admin odoo.modules.loading: Loading module auth_totp (3/12)
|
||||
2024-12-19 15:23:04,621 8 INFO admin odoo.modules.registry: module auth_totp: creating or updating database tables
|
||||
2024-12-19 15:23:04,655 8 INFO admin odoo.modules.loading: loading auth_totp/security/security.xml
|
||||
2024-12-19 15:23:04,674 8 INFO admin odoo.modules.loading: loading auth_totp/security/ir.model.access.csv
|
||||
2024-12-19 15:23:04,681 8 INFO admin odoo.modules.loading: loading auth_totp/data/ir_action_data.xml
|
||||
2024-12-19 15:23:04,688 8 INFO admin odoo.modules.loading: loading auth_totp/views/res_users_views.xml
|
||||
2024-12-19 15:23:04,722 8 INFO admin odoo.modules.loading: loading auth_totp/views/templates.xml
|
||||
2024-12-19 15:23:04,732 8 INFO admin odoo.modules.loading: loading auth_totp/wizard/auth_totp_wizard_views.xml
|
||||
2024-12-19 15:23:04,755 8 INFO admin odoo.modules.loading: Module auth_totp loaded in 0.16s, 188 queries (+188 other)
|
||||
2024-12-19 15:23:04,756 8 INFO admin odoo.modules.loading: Loading module base_import (4/12)
|
||||
2024-12-19 15:23:04,983 8 INFO admin odoo.modules.registry: module base_import: creating or updating database tables
|
||||
2024-12-19 15:23:05,309 8 INFO admin odoo.modules.loading: loading base_import/security/ir.model.access.csv
|
||||
2024-12-19 15:23:05,326 8 INFO admin odoo.modules.loading: Module base_import loaded in 0.57s, 874 queries (+874 other)
|
||||
2024-12-19 15:23:05,327 8 INFO admin odoo.modules.loading: Loading module base_import_module (5/12)
|
||||
2024-12-19 15:23:05,346 8 INFO admin odoo.modules.registry: module base_import_module: creating or updating database tables
|
||||
2024-12-19 15:23:05,391 8 INFO admin odoo.modules.loading: loading base_import_module/security/ir.model.access.csv
|
||||
2024-12-19 15:23:05,399 8 INFO admin odoo.modules.loading: loading base_import_module/views/base_import_module_view.xml
|
||||
2024-12-19 15:23:05,412 8 INFO admin odoo.modules.loading: loading base_import_module/views/ir_module_views.xml
|
||||
2024-12-19 15:23:05,453 8 INFO admin odoo.modules.loading: Module base_import_module loaded in 0.13s, 164 queries (+164 other)
|
||||
2024-12-19 15:23:05,454 8 INFO admin odoo.modules.loading: Loading module base_setup (6/12)
|
||||
2024-12-19 15:23:05,480 8 INFO admin odoo.modules.registry: module base_setup: creating or updating database tables
|
||||
2024-12-19 15:23:05,516 8 INFO admin odoo.modules.loading: loading base_setup/data/base_setup_data.xml
|
||||
2024-12-19 15:23:05,523 8 INFO admin odoo.modules.loading: loading base_setup/views/res_config_settings_views.xml
|
||||
2024-12-19 15:23:05,548 8 INFO admin odoo.modules.loading: loading base_setup/views/res_partner_views.xml
|
||||
2024-12-19 15:23:05,564 8 INFO admin odoo.modules.loading: Module base_setup loaded in 0.11s, 150 queries (+150 other)
|
||||
2024-12-19 15:23:05,565 8 INFO admin odoo.modules.loading: Loading module bus (7/12)
|
||||
2024-12-19 15:23:05,593 8 INFO admin odoo.modules.registry: module bus: creating or updating database tables
|
||||
2024-12-19 15:23:05,663 8 INFO admin odoo.modules.loading: loading bus/security/ir.model.access.csv
|
||||
2024-12-19 15:23:05,679 8 INFO admin odoo.modules.loading: Module bus loaded in 0.11s, 165 queries (+165 other)
|
||||
2024-12-19 15:23:05,680 8 INFO admin odoo.modules.loading: Loading module web_tour (8/12)
|
||||
2024-12-19 15:23:05,696 8 INFO admin odoo.modules.registry: module web_tour: creating or updating database tables
|
||||
2024-12-19 15:23:05,700 8 INFO admin odoo.models: Prepare computation of res.users.tour_enabled
|
||||
2024-12-19 15:23:05,748 8 INFO admin odoo.modules.loading: loading web_tour/security/ir.model.access.csv
|
||||
2024-12-19 15:23:05,756 8 INFO admin odoo.modules.loading: loading web_tour/views/tour_views.xml
|
||||
2024-12-19 15:23:05,777 8 INFO admin odoo.modules.loading: loading web_tour/views/res_users_views.xml
|
||||
2024-12-19 15:23:05,801 8 INFO admin odoo.modules.loading: Module web_tour loaded in 0.12s, 188 queries (+188 other)
|
||||
2024-12-19 15:23:05,803 8 INFO admin odoo.modules.loading: Loading module html_editor (9/12)
|
||||
2024-12-19 15:23:05,913 8 INFO admin odoo.modules.registry: module html_editor: creating or updating database tables
|
||||
2024-12-19 15:23:05,941 8 INFO admin odoo.modules.loading: Module html_editor loaded in 0.14s, 42 queries (+42 other)
|
||||
2024-12-19 15:23:05,943 8 INFO admin odoo.modules.loading: Loading module iap (10/12)
|
||||
2024-12-19 15:23:05,956 8 INFO admin odoo.modules.registry: module iap: creating or updating database tables
|
||||
2024-12-19 15:23:06,002 8 INFO admin odoo.modules.loading: loading iap/data/services.xml
|
||||
2024-12-19 15:23:06,007 8 INFO admin odoo.modules.loading: loading iap/security/ir.model.access.csv
|
||||
2024-12-19 15:23:06,016 8 INFO admin odoo.modules.loading: loading iap/security/ir_rule.xml
|
||||
2024-12-19 15:23:06,023 8 INFO admin odoo.modules.loading: loading iap/views/iap_views.xml
|
||||
2024-12-19 15:23:06,040 8 INFO admin odoo.modules.loading: loading iap/views/res_config_settings.xml
|
||||
2024-12-19 15:23:06,057 8 INFO admin odoo.modules.loading: Module iap loaded in 0.11s, 183 queries (+183 other)
|
||||
2024-12-19 15:23:06,058 8 INFO admin odoo.modules.loading: Loading module web_editor (11/12)
|
||||
2024-12-19 15:23:06,096 8 INFO admin odoo.modules.registry: module web_editor: creating or updating database tables
|
||||
2024-12-19 15:23:06,444 8 INFO admin odoo.modules.loading: loading web_editor/security/ir.model.access.csv
|
||||
2024-12-19 15:23:06,455 8 INFO admin odoo.modules.loading: loading web_editor/data/editor_assets.xml
|
||||
2024-12-19 15:23:06,459 8 INFO admin odoo.modules.loading: loading web_editor/views/editor.xml
|
||||
2024-12-19 15:23:06,471 8 INFO admin odoo.modules.loading: loading web_editor/views/snippets.xml
|
||||
2024-12-19 15:23:06,514 8 INFO admin odoo.modules.loading: Module web_editor loaded in 0.46s, 1004 queries (+1004 other)
|
||||
2024-12-19 15:23:06,515 8 INFO admin odoo.modules.loading: Loading module web_unsplash (12/12)
|
||||
2024-12-19 15:23:06,535 8 INFO admin odoo.modules.registry: module web_unsplash: creating or updating database tables
|
||||
2024-12-19 15:23:06,566 8 INFO admin odoo.modules.loading: loading web_unsplash/views/res_config_settings_view.xml
|
||||
2024-12-19 15:23:06,591 8 INFO admin odoo.modules.loading: Module web_unsplash loaded in 0.08s, 98 queries (+98 other)
|
||||
2024-12-19 15:23:06,595 8 INFO admin odoo.modules.loading: 12 modules loaded in 2.50s, 4153 queries (+4153 extra)
|
||||
2024-12-19 15:23:06,768 8 INFO admin odoo.modules.loading: Modules loaded.
|
||||
2024-12-19 15:23:06,771 8 INFO admin odoo.modules.registry: Registry changed, signaling through the database
|
||||
2024-12-19 15:23:06,773 8 INFO admin odoo.modules.registry: Registry loaded in 10.532s
|
||||
2024-12-19 15:23:27,814 8 INFO admin odoo.addons.base.models.ir_http: Generating routing map for key None
|
||||
2024-12-19 15:23:27,865 8 INFO admin werkzeug: 172.18.0.1 - - [19/Dec/2024 15:23:27] "GET /websocket?version=18.0-2 HTTP/1.1" 101 - 8 0.004 0.053
|
||||
2024-12-19 15:23:27,926 8 INFO admin werkzeug: 172.18.0.1 - - [19/Dec/2024 15:23:27] "POST /bus/get_autovacuum_info HTTP/1.1" 200 - 8 0.004 0.006
|
||||
2024-12-19 15:23:28,189 8 INFO ? odoo.addons.bus.models.bus: Bus.loop listen imbus on db postgres
|
||||
2024-12-19 15:24:06,456 8 INFO admin odoo.addons.base.models.ir_cron: Job 'Base: Auto-vacuum internal data' (1) starting
|
||||
2024-12-19 15:24:06,471 8 INFO admin odoo.addons.base.models.ir_attachment: filestore gc 57 checked, 0 removed
|
||||
2024-12-19 15:24:06,494 8 INFO admin odoo.addons.base.models.res_users: GC'd 0 user log entries
|
||||
2024-12-19 15:24:06,499 8 INFO admin odoo.addons.base.models.res_users: GC 'res.users.apikeys' delete 0 entries
|
||||
2024-12-19 15:24:06,506 8 INFO admin odoo.addons.base.models.res_device: GC device logs delete 0 entries
|
||||
2024-12-19 15:24:06,509 8 INFO admin odoo.addons.base.models.res_device: GC device logs delete 0 entries
|
||||
2024-12-19 15:24:06,519 8 INFO admin odoo.addons.base.models.res_users: GC 'auth_totp.device' delete 0 entries
|
||||
2024-12-19 15:24:06,529 8 INFO admin odoo.addons.base.models.ir_cron: Job 'Base: Auto-vacuum internal data' (1) done in 0.072s
|
||||
2024-12-19 15:24:06,538 8 INFO admin odoo.addons.base.models.ir_cron: Job 'Base: Auto-vacuum internal data' (1) processed 0 records, 0 records remaining
|
||||
2024-12-19 15:24:06,548 8 INFO admin odoo.addons.base.models.ir_cron: Job 'Base: Auto-vacuum internal data' (1) completed
|
||||
2024-12-19 15:24:06,566 8 INFO admin odoo.addons.base.models.ir_cron: Job 'Base: Portal Users Deletion' (2) starting
|
||||
2024-12-19 15:24:06,576 8 INFO admin odoo.addons.base.models.ir_cron: Job 'Base: Portal Users Deletion' (2) done in 0.007s
|
||||
2024-12-19 15:24:06,584 8 INFO admin odoo.addons.base.models.ir_cron: Job 'Base: Portal Users Deletion' (2) processed 0 records, 0 records remaining
|
||||
2024-12-19 15:24:06,588 8 INFO admin odoo.addons.base.models.ir_cron: Job 'Base: Portal Users Deletion' (2) completed
|
13
.vscode/notes.txt
vendored
13
.vscode/notes.txt
vendored
@ -1,5 +1,12 @@
|
||||
docker-compose -f roles/docker-compose/files/docker-compose.yml up -d
|
||||
ansible-playbook deploy.yml --ask-become-pass
|
||||
|
||||
ansible-playbook -i inventory/hosts deploy.yml
|
||||
ansible-playbook -i inventory/hosts.yml deploy.yml --ask-become-pass
|
||||
postgres:
|
||||
psql -h admin -U admin -d admin
|
||||
SELECT * FROM pg_stat_statements;
|
||||
SELECT query, calls, total_exec_time, rows, 100.0 * shared_blks_hit /
|
||||
nullif(shared_blks_hit + shared_blks_read, 0) AS hit_percent
|
||||
FROM pg_stat_statements ORDER BY total_exec_time DESC LIMIT 5;
|
||||
|
||||
|
||||
GRAFANA:
|
||||
sum(increase(postgresql_query_calls{query=~"SELECT.*"}[5m]))
|
||||
|
2806
.vscode/roles/docker-compose/files/logs/odoo/odoo.log
vendored
2806
.vscode/roles/docker-compose/files/logs/odoo/odoo.log
vendored
File diff suppressed because it is too large
Load Diff
39
.vscode/roles/docker-compose/tasks/main.yml
vendored
39
.vscode/roles/docker-compose/tasks/main.yml
vendored
@ -1,39 +0,0 @@
|
||||
- name: Ensure Docker is running
|
||||
ansible.builtin.service:
|
||||
name: docker
|
||||
state: started
|
||||
become: yes
|
||||
|
||||
- name: Ensure Docker Compose is installed
|
||||
ansible.builtin.shell: |
|
||||
curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
|
||||
chmod +x /usr/local/bin/docker-compose
|
||||
args:
|
||||
executable: /bin/bash
|
||||
become: yes
|
||||
|
||||
- name: Create destination directory
|
||||
ansible.builtin.file:
|
||||
path: /opt/docker-compose
|
||||
state: directory
|
||||
mode: '0755'
|
||||
become: yes
|
||||
|
||||
- name: Copy Docker Compose file
|
||||
ansible.builtin.copy:
|
||||
src: roles/docker-compose/files/docker-compose.yml
|
||||
dest: /opt/docker-compose/docker-compose.yml
|
||||
remote_src: no
|
||||
become: yes
|
||||
|
||||
- name: Copy docker directory
|
||||
ansible.builtin.copy:
|
||||
src: roles/docker-compose/files/docker
|
||||
dest: /opt/docker-compose/
|
||||
remote_src: no
|
||||
become: yes
|
||||
- name: Run Docker Compose
|
||||
ansible.builtin.command:
|
||||
cmd: /usr/local/bin/docker-compose up -d
|
||||
chdir: /opt/docker-compose
|
||||
become: yes
|
@ -1,4 +0,0 @@
|
||||
POSTGRES_PASSWORD={{ POSTGRES_PASSWORD }}
|
||||
POSTGRES_USER={{ POSTGRES_USER }}
|
||||
POSTGRES_DB={{ POSTGRES_DB }}
|
||||
ODOO_PASSWORD={{ ODOO_PASSWORD }}
|
3
.vscode/secrets.yml
vendored
Normal file
3
.vscode/secrets.yml
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
postgres_password: admin
|
||||
pgadmin_password: admin
|
||||
odoo_password: admin
|
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -1,3 +0,0 @@
|
||||
{
|
||||
"ansible.python.interpreterPath": "/bin/python3"
|
||||
}
|
4
.vscode/volumes.yml
vendored
Normal file
4
.vscode/volumes.yml
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
volumes:
|
||||
- name: postgres-data
|
||||
- name: prometheus-data
|
||||
- name: backup-data
|
Loading…
Reference in New Issue
Block a user