Resolving Docker Error with Wordpress
TLDR john was experiencing an error with Docker and Wordpress. Jason advised using a special hostname to enable connectivity between Wordpress and Typesense containers.
Powered by Struct AI
3
13mo
Solved
Sep 16, 2022 (13 months ago)
john
john
01:15 PMdocker is used now, but still error with wordpress:
=== START ====
::Time:: 2022-09-16::13:12:00-UTC
WP_Error::__set_state(array(
'errors' =>
array (
'http_request_failed' =>
array (
0 => 'cURL error 7: Failed to connect to localhost port 8108: Connection refused',
),
),
'error_data' =>
array (
),
'additional_data' =>
array (
),
))
===END===
Jason
Jason
03:03 PMIs wordpress also running in Docker? If so, “localhost” within that Docker container refers to the wordpress container.
You want to use a special hostname to get the wordpress container to be able to connect to the Typesense container: https://stackoverflow.com/questions/31324981/how-to-access-host-port-from-docker-container/43541732#43541732
You want to use a special hostname to get the wordpress container to be able to connect to the Typesense container: https://stackoverflow.com/questions/31324981/how-to-access-host-port-from-docker-container/43541732#43541732
john
john
03:21 PMyes. Thank you for the pointer
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 2786 threads (79% resolved)
Similar Threads
Troubleshooting Typesense Server Error on Docker
vikram was facing an error with Typesense Server Docker container and loss of data on restart. Kishore Nallan guided to avoid mounting tmp directory from localhost and explained stopping the Docker container.
16
12mo
Solved
Configuring Docker-hosted Typesense with Let's Encrypt SSL Certificates
Ian asked for help with setting up SSL certificates in a Docker-hosted Typesense. Jason provided suggestions but the issue remains unresolved due to port conflict.
12
6mo
Troubleshooting Multi-Node Setup in Docker
Harpreet experienced issues running a multi-node setup on Docker and received troubleshooting advice and alternative solution from Kishore Nallan.
13
29mo