How to run the API from the docker image #19313
Replies: 2 comments
-
@DavidIvanov02 Hello there! I'm here to help you with any bugs, questions, or contributions you may have. Let's tackle this together! To run the Cal.com API from the Docker image and automatically create user profiles via API, follow these steps:
By following these steps, you should be able to create user profiles automatically via the Cal.com API. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
-
Hello, @keithwillcode. We had a conversation about the API and how to create the users (behind the scenes) via API. I put the DockerFile as you said and -> Now I have this configuration: calcom: calcom-api: But I got an error: 16.82 yarn install v1.22.22
|
Beta Was this translation helpful? Give feedback.
-
calcom:
image: calcom/cal.com:latest
container_name: calcom
restart: always
ports:
- "3001:3000"
- "3310:3310"
environment:
- DATABASE_URL=postgres://ouod:mydb@db:5432/mydb?schema=calcom
- DATABASE_DIRECT_URL=postgres://ouod:mydb@db:5432/mydb?schema=calcom
- REDIS_URL=redis://redis:6379
- NEXT_PUBLIC_WEBAPP_URL=http://localhost:3001
- NEXT_PUBLIC_APP_URL=http://localhost:3001
- NEXTAUTH_URL=http://localhost:3001
- NEXTAUTH_SECRET=some-random-secret
- CALENDSO_ENCRYPTION_KEY=8f2b8a9d84f1c9a6f5a5e8d3c6a7b1f2a5d4e9b7c8d6a9e2b3f7c6d8e9a2b5f4
- ENABLE_BACKEND_API=true
depends_on:
- db
- redis
I already have "frontend" container in my docker-compose.yml, running on port :3000 (Next.js 14). My database is postgress and have already migrated all tables from database. cal.com@web is running on :3001 and i created an account, however in my system i have users (auth flow) and I want to create their profiles automatically behind the scenes, via API.
Beta Was this translation helpful? Give feedback.
All reactions