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

Change port to 3001/3002 #365

Closed daniyalhaider99 closed 3 months ago

daniyalhaider99 commented 3 months ago

I was setting up cal.com application on my local. Due to other applications running in i was unable to run the project on port 3000. I made changes in the Dockerfile and docker-compose.yml file and also the .env but still i get this fetch error and upon checking logs of container it shows url localhost:3000 but this url never opens.

Any help regarding issue this would be appreciated.

jshimko commented 3 months ago

@daniyalhaider99 You can change it to whatever you want with Docker's port mapping configs. If you're using the docker-compose config from this repo, see the port section.

ports:
  - 3000:3000

...which means $LOCALHOST_PORT:$CONTAINER_PORT

For example, if you want port http://localhost:3002 to work, you could do...

ports:
  - 3002:3000

Also see Docker and Docker Compose docs for more detail.