Josh
12/22/2022, 5:49 AMDATABASE_URL value from the env for the prisma build step seems to be broken. Notice above, where the error message says ‘Error: P1001: Can’t reach database server at `database`:`5432`’. (The additional backtick marks seems suspicious.) What DOES work is passing in this value via the command line, like: DOCKER_BUILDKIT=0 docker compose build --build-arg DATABASE_URL=<postgresql://postgres:postgres@host:5432/database> calcom . (I tested setting the URL component values in the env to the same values as passed in via the command line like above: The env method failed and the command line method worked.)
2. The LAN IP address of the database container needs to be used at the command line, not the generic database:5432 addressing. That is, before calling the above command, the user needs to docker-compose up database --detach, docker exec -it database bash, inside the database container get the LAN IP address via hostname -I, and then use that value as the appropriate URL host address within the command above. Example: DOCKER_BUILDKIT=0 docker compose build --build-arg DATABASE_URL=<postgresql://postgres:postgres@172.24.0.2:5432/database> calcomColin - Krumware
12/22/2022, 8:55 PMJosh
12/22/2022, 8:57 PMbrew install docker on macOS and live on the command line.