Docker Compose Issue with Connecting Server and Typesense
TLDR Priyank couldn't connect their server with typesense through Docker compose. After troubleshooting with Kishore Nallan and WL, user discovered that they needed to specify the IP address of the typesense service in their client configuration.

Feb 02, 2023 (7 months ago)
Priyank
06:57 AMKishore Nallan
07:13 AMPriyank
07:19 AMPriyank
07:19 AMservices:
typesense:
image: typesense/typesense:0.22.2
command: "--data-dir /data --api-key=ecommerce"
ports:
- "8108:8108"
volumes:
- typesense-data:/data
expose:
- "8108"
node-app:
depends_on:
- typesense
build: .
ports:
- "8000:8000"
environment:
- PORT=8000
volumes:
typesense-data:
driver: local
Kishore Nallan
07:25 AMtypesense-data
actually exists. You can also check the container logs to see if Typesense actually starts.Priyank
09:12 AMKishore Nallan
09:33 AMWL
10:09 AMenable-cors
flag needs to be specified so that the server can be called from a frontend?Kishore Nallan
10:13 AMPriyank
10:24 AM
Typesense
Indexed 2764 threads (79% resolved)
Similar Threads
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.
Server IP Address and Port Issues with Typesense
Alex encountered problems with Typesense server configuration when setting IP and port using --api-address and --api-port, facing additional problems with CORS and version inequities. Kishore Nallan addressed each point, ultimately finding a bug with the command line parser affecting subsequent commands. The advised workaround was to use `--enable-cors=true`.

Troubleshooting Typesense Server Start-Up Process with Docker
gun asked how to start the Typesense server using Docker, which Jason explained. Monk added it also works on Windows 10 without Docker and agreed to add these details to documentation.


Resolving CORS Error in Typesense Server Setup
Digamber had a CORS error with Typesense server setup. Kishore Nallan solved the error by suggesting to use only `--enable-cors` without adding `=true`.
Running Typesense in Docker Container on Windows 10
Christian had issues running Typesense in Docker due to an unrecognized data directory. Jason suggested a solution to fix the file path issue, which Christian successfully implemented using Windows Powershell.