Merci beaucoup. Laissez-moi revenir à la version Docker et au fichier postgres.template.yml
./launcher rebuild data
arch x86_64 détecté.
Vérification que le launcher est à jour
Le launcher est à jour
Arrêt de l'ancien conteneur
+ /usr/bin/docker stop -t 600 data
data
2.0.20250129-0720 : Pull depuis docker-hub-china/discourse-base
Digest : sha256:d798a945ca4d31c29e5d263cdaf807bafab9b5f6737be0b1b852bea0063a3b91
Statut : Image à jour pour registry.cn-wulanchabu.aliyuncs.com/docker-hub-china/discourse-base:2.0.20250129-0720
registry.cn-wulanchabu.aliyuncs.com/docker-hub-china/discourse-base:2.0.20250129-0720
/usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2025-02-06T07:02:42.768651 #1] INFO -- : Lecture depuis stdin
I, [2025-02-06T07:02:42.769907 #1] INFO -- : Ignore le hook before_code manquant
I, [2025-02-06T07:02:42.769923 #1] INFO -- : Ignore le hook before_db_migrate manquant
I, [2025-02-06T07:02:42.769933 #1] INFO -- : Ignore le hook after_code manquant
I, [2025-02-06T07:02:42.772767 #1] INFO -- : Fichier > /etc/service/postgres/run chmod : +x chown :
I, [2025-02-06T07:02:42.775230 #1] INFO -- : Fichier > /etc/service/postgres/log/run chmod : +x chown :
I, [2025-02-06T07:02:42.777690 #1] INFO -- : Fichier > /etc/runit/3.d/99-postgres chmod : +x chown :
I, [2025-02-06T07:02:42.779645 #1] INFO -- : Fichier > /root/install_postgres chmod : +x chown :
I, [2025-02-06T07:02:42.781825 #1] INFO -- : Fichier > /root/upgrade_postgres chmod : +x chown :
I, [2025-02-06T07:02:42.781974 #1] INFO -- : Remplacement de data_directory = '/var/lib/postgresql/15/main' par data_directory = '/shared/postgres_data' dans /etc/postgresql/15/main/postgresql.conf
I, [2025-02-06T07:02:42.782261 #1] INFO -- : Remplacement de (?-mix:#?listen_addresses *=.*) par listen_addresses = '*' dans /etc/postgresql/15/main/postgresql.conf
I, [2025-02-06T07:02:42.782427 #1] INFO -- : Remplacement de (?-mix:#?synchronous_commit *=.*) par synchronous_commit = $db_synchronous_commit dans /etc/postgresql/15/main/postgresql.conf
I, [2025-02-06T07:02:42.782551 #1] INFO -- : Remplacement de (?-mix:#?shared_buffers *=.*) par shared_buffers = $db_shared_buffers dans /etc/postgresql/15/main/postgresql.conf
I, [2025-02-06T07:02:42.782661 #1] INFO -- : Remplacement de (?-mix:#?work_mem *=.*) par work_mem = $db_work_mem dans /etc/postgresql/15/main/postgresql.conf
I, [2025-02-06T07:02:42.782762 #1] INFO -- : Remplacement de (?-mix:#?default_text_search_config *=.*) par default_text_search_config = '$db_default_text_search_config' dans /etc/postgresql/15/main/postgresql.conf
I, [2025-02-06T07:02:42.782877 #1] INFO -- : Remplacement de (?-mix:#?checkpoint_segments *=.*) par checkpoint_segments = $db_checkpoint_segments dans /etc/postgresql/15/main/postgresql.conf
I, [2025-02-06T07:02:42.782974 #1] INFO -- : Remplacement de (?-mix:#?logging_collector *=.*) par logging_collector = $db_logging_collector dans /etc/postgresql/15/main/postgresql.conf
I, [2025-02-06T07:02:42.783076 #1] INFO -- : Remplacement de (?-mix:#?log_min_duration_statement *=.*) par log_min_duration_statement = $db_log_min_duration_statement dans /etc/postgresql/15/main/postgresql.conf
I, [2025-02-06T07:02:42.783180 #1] INFO -- : Remplacement de (?-mix:#?local +replication +postgres +peer$) par local replication postgres peer dans /etc/postgresql/15/main/pg_hba.conf
I, [2025-02-06T07:02:42.783258 #1] INFO -- : Remplacement de (?-mix:^host.*all.*all.*127.*$) par host all all 0.0.0.0/0 md5 dans /etc/postgresql/15/main/pg_hba.conf
I, [2025-02-06T07:02:42.783334 #1] INFO -- : Remplacement de (?-mix:^host.*all.*all.*::1\/128.*$) par host all all ::/0 md5 dans /etc/postgresql/15/main/pg_hba.conf
I, [2025-02-06T07:02:42.783416 #1] INFO -- : > si [ -f /root/install_postgres ]; alors
/root/install_postgres && rm -f /root/install_postgres
sinon si [ -e /shared/postgres_run/.s.PGSQL.5432 ]; alors
socat /dev/null UNIX-CONNECT:/shared/postgres_run/.s.PGSQL.5432 || exit 0 && echo postgres déjà en cours d'exécution, arrêter le conteneur ; exit 1
fi
initdb : avertissement : authentification "trust" activée pour les connexions locales
initdb : astuce : Vous pouvez changer cela en éditant pg_hba.conf ou en utilisant l'option -A, ou --auth-local et --auth-host, la prochaine fois que vous exécutez initdb.