0
I’m trying to use Baserow with Appsmith locally. Here is my docker-compose.yml:
version: "3.4"
services:
appsmith:
container_name: appsmith
image: index.docker.io/appsmith/appsmith-ee
ports:
- "80:80"
- "443:443"
volumes:
- ./stacks:/appsmith-stacks
restart: unless-stopped
depends_on:
- baserow
baserow:
container_name: baserow
image: baserow/baserow:1.22.2
environment:
BASEROW_PUBLIC_URL: 'http://localhost:4001'
ports:
- "4001:80"
- "4002:443"
volumes:
- baserow_data:/baserow/data
volumes:
baserow_data:
(I tried first with another port then 443 or 80 for Appsmith but it did not work) With this, everything is working properly except I cannot do a simple curl from appsmith to baserow. If I try this: curl -X GET -H "Authorization: Token mytoken" "http://baserow/api/database/fields/table/1172/"
It returns an error on AppSmith. If I try this cURL directly in my docker-destkop app I get this:
<!doctype html>
<html lang="en">
<head>
<title>Bad Request (400)</title>
</head>
<body>
<h1>Bad Request (400)</h1><p></p>
</body>
</html>
Finally, if I try the same cURL from my terminal (of my computer) it’s working but I use this: curl -X GET -H "Authorization: Token mytoken" "http://localhost:4001/api/database/fields/table/1172/"
Thanks for your help!