Commit with the pg_admin for the web interface to the postgreSQL

This commit is contained in:
khaliiiiiil 2024-11-27 18:20:56 +01:00
parent 9684a2d49f
commit 401cd7a01c
4 changed files with 17 additions and 14 deletions

View File

@ -17,6 +17,16 @@
} }
] ]
}, },
{
"name": "pgadmin",
"image": "dpage/pgadmin4:latest",
"envs": {
"PGADMIN_DEFAULT_EMAIL": "admin@admin.com",
"PGADMIN_DEFAULT_PASSWORD": "admin"
},
"network_mode": "testNetwork",
"ports": [{"internal": 80, "external": 5050}]
},
{ {
"name": "odoo", "name": "odoo",
"image": "odoo_custom", "image": "odoo_custom",
@ -29,7 +39,6 @@
}, },
"network_mode": "testNetwork", "network_mode": "testNetwork",
"ports": [{"internal": 8069, "external": 8069}], "ports": [{"internal": 8069, "external": 8069}],
"instances": 3,
"volumes": [ "volumes": [
{ {
"host_path": "./odoo.conf", "host_path": "./odoo.conf",
@ -63,7 +72,7 @@
"host_path": "./prometheus.yml" "host_path": "./prometheus.yml"
} }
] ]
}, },
{ {
"name": "fluentd", "name": "fluentd",
"image": "fluent/fluentd:v1.13-1", "image": "fluent/fluentd:v1.13-1",

View File

@ -1,3 +1,4 @@
#!/bin/sh #!/bin/sh
sleep 20
odoo -i base odoo -i base

View File

@ -4,4 +4,4 @@ db_port = 5432
db_user = admin db_user = admin
db_password = admin db_password = admin
default_productivity_apps = True default_productivity_apps = True
db_name = false db_name = admin

View File

@ -1,15 +1,8 @@
global:
scrape_interval: 15s # How often to scrape metrics (every 15 seconds)
scrape_configs: scrape_configs:
- job_name: 'postgres' # For scraping PostgreSQL - job_name: 'postgres'
static_configs: static_configs:
- targets: ['postgres:5432'] - targets: ['localhost:8000'] # Le script expose les métriques sur ce port
- job_name: 'odoo' # For scraping Odoo - job_name: 'odoo'
static_configs: static_configs:
- targets: ['odoo:8069'] - targets: ['localhost:8000'] # Idem pour Odoo
- job_name: 'grafana' # For scraping Grafana
static_configs:
- targets: ['grafana:3000']