docker icon indicating copy to clipboard operation
docker copied to clipboard

Build API & Swagger as well

Open berts83231 opened this issue 2 years ago • 2 comments

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 avatar Jul 09 '23 23:07 berts83231

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

berts83231 avatar Jul 09 '23 23:07 berts83231

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

  • Dockerfile
  • docker-compose.yaml

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

berts83231 avatar Jul 09 '23 23:07 berts83231