Connecting to external database

So as a result, if you want to have your Baserow container connect to and use your filament-pgsql-1 postgresql, they need to:

  1. Be on a shared docker network
  2. Then you can connect to the filament psql by using it’s container name as the hostname

You can do this by in the Baserow compose file adding to the network section at the bottom:

networks:
  filament_sail:
    external: true
  local:
    driver: bridge

and then changing the backend, celery, celery-export-worker and celery-beat-worker services in the Baserow docker-compose to put them on the same network as the database like so:

    networks:
      local:
      filament_sail:

Finally then you should be able to put DATABASE_HOST=filament-pgsql-1 or DATABASE_HOST=the service name in the docker compose file of the pgsql service in the Baserow .env, down all of the Baserow containers to delete them all and then up them all again now running on the shared network.

I would also suggest checking out the docker and docker-compose documentation on networking: Networking in Compose | Docker Documentation