hmm. i really can’t seem to get the custom docker ...
# docker
j
hmm. i really can’t seem to get the custom docker image building instructions to work. everything works up until the command:
docker compose up -d database
then, with my
.env
configured to:
Copy code
POSTGRES_USER=postgres
POSTGRES_PASSWORD=postgres
POSTGRES_DB=calendso
DATABASE_HOST=database:5432
DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
i do:
DOCKER_BUILDKIT=0 docker compose build calcom
and end up with the error:
Copy code
@calcom/prisma:build: Error: P1001: Can't reach database server at `database`:`5432`
@calcom/prisma:build: 
@calcom/prisma:build: Please make sure your database server is running at `database`:`5432`.
@calcom/prisma:build: error Command failed with exit code 1.
@calcom/prisma:build: info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
@calcom/prisma:build: error Command failed with exit code 1.
@calcom/prisma:build: info Visit <https://yarnpkg.com/en/docs/cli/run> for documentation about this command.
everything else about the project is stock. any thoughts here?
e
It's good to see someone else also struggle to stand up an instance - you seem to have more experience with Docker than me, so it makes me feel less like an idiot 😂
j
check my most recent message
and i’m a total noob to docker 😄 i do have intermediate linux/networking experience. and have thrown a few hours at this.
e
Just saw. Seems you figured something out that would have taken me weeks!
Do you now have an instance up and running using Docker?
j
well, i successfully built a customized docker image
i haven’t tried deploying it yet
@Elliott here’s some info on how to get the standard docker image running: https://gist.github.com/joshavant/44e10969d7f967c0812dff9f058c4f91
e
Ah fantastic, thanks for this...
I think I have a Docker image built on my VPS, but can't access it
j
ah, i’m not sure about that off hand… sorry
e
No sweat, just thought I'd ask 😁
n
@Kavita Nambissan