calcom / docker

The Docker configuration for Cal.com is an effort powered by people within the community. Cal.com, Inc. does not provide official support for Docker, but we will accept fixes and documentation. Use at your own risk.
MIT License
676 stars 346 forks source link

quick-start in docs is misleading or incomplete #317

Open MTRNord opened 9 months ago

MTRNord commented 9 months ago

Having spent now over 1h trying to run https://cal.com/docs/introduction/quick-start/self-hosting/docker I deem this broken.

I am getting the following error on buildtime:

• Running db-deploy in 91 packages
• Remote caching disabled
@calcom/prisma:db-deploy: cache bypass, force executing 1781453540023193
@calcom/prisma:db-deploy: Prisma schema loaded from schema.prisma
@calcom/prisma:db-deploy: Datasource "db": PostgreSQL database "calendso", schema "public" at "database:5432"
@calcom/prisma:db-deploy: 
@calcom/prisma:db-deploy: Error: P1001: Can't reach database server at `database`:`5432`
@calcom/prisma:db-deploy: 
@calcom/prisma:db-deploy: Please make sure your database server is running at `database`:`5432`.
@calcom/prisma:db-deploy: ERROR: command finished with error: command (/calcom/packages/prisma) yarn run db-deploy exited (1)
command (/calcom/packages/prisma) yarn run db-deploy exited (1)

 Tasks:    0 successful, 1 total
Cached:    0 cached, 1 total
  Time:    2.545s 
Failed:    @calcom/prisma#db-deploy

And get 39792c7d9961 @calcom/web:start: error connecting to engine: sql, type: postgres db: Error: connect ECONNREFUSED ::1:5432 at runtime. I tried starting the database container first, I tried it in various other ways now too.

I am literally following that page word by word and so far made 0 changes to files. :|

krumware commented 9 months ago

Please follow the instructions in the repo readme instead: https://github.com/calcom/docker?tab=readme-ov-file#most-users-running-calcom-with-docker-compose

I've put in a request to update the official docs