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
646 stars 338 forks source link

Build API & Swagger as well #270

Open berts83231 opened 1 year ago

berts83231 commented 1 year ago

I use both Swagger and the api for our hosted service.

It would make sense to build these additional services at the same time. And run them by modifying docker-compose.

  api:
    container_name: cal-api
    image: calcom.docker.scarf.sh/calcom/cal.com
    restart: always
    networks:
      - stack
    ports:
      - 3002:3002
    env_file: .env
    environment:
      - PORT=3002
      - DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
    depends_on:
      - database
    working_dir: /calcom/apps/api
    command: npx next start

  swagger:
    container_name: cal-swagger
    image: calcom.docker.scarf.sh/calcom/cal.com
    restart: always
    networks:
      - stack
    ports:
      - 4200:4200
    env_file: .env
    environment:
      - PORT=4200
      - DATABASE_URL=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${DATABASE_HOST}/${POSTGRES_DB}
    depends_on:
      - database
    working_dir: /calcom/apps/swagger
    command: npx next dev
berts83231 commented 1 year ago

Currently the swagger build is broken. https://github.com/calcom/cal.com/issues/10023

berts83231 commented 1 year ago

I can make the changes. But should the scope of the changes be confined to:

Or should files in the main repo, like turbo.json also be modified.