does cobalt api support change port? #472

Closed
opened 2025-11-09 09:50:20 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @Yumega on GitHub (Oct 3, 2024).

problem description

I changed the port into 9002, it doesn't work.
port 9000 has used by protainer, must change the port.

services:
  cobalt-api:
      image: ghcr.io/imputnet/cobalt:7
      network_mode: bridge
      restart: unless-stopped
      container_name: cobalt-api
      init: true
      tty: true
      ports:
          - 9002:9002/tcp
      environment:
          API_URL: "http://192.168.11.1:9002/"
          API_NAME: "cobalt-api"

your instance configuration

No response

Originally created by @Yumega on GitHub (Oct 3, 2024). ### problem description I changed the port into 9002, it doesn't work. port 9000 has used by protainer, must change the port. ``` services: cobalt-api: image: ghcr.io/imputnet/cobalt:7 network_mode: bridge restart: unless-stopped container_name: cobalt-api init: true tty: true ports: - 9002:9002/tcp environment: API_URL: "http://192.168.11.1:9002/" API_NAME: "cobalt-api" ``` ### your instance configuration _No response_
GiteaMirror added the instance hosting help label 2025-11-09 09:50:20 -06:00
Author
Owner

@wukko commented on GitHub (Oct 3, 2024):

you have to change the API_PORT env variable, too: https://github.com/imputnet/cobalt/blob/main/docs/run-an-instance.md#variables-for-api

@wukko commented on GitHub (Oct 3, 2024): you have to change the `API_PORT` env variable, too: https://github.com/imputnet/cobalt/blob/main/docs/run-an-instance.md#variables-for-api
Author
Owner

@Yumega commented on GitHub (Oct 3, 2024):

you have to change the API_PORT env variable, too: https://github.com/imputnet/cobalt/blob/main/docs/run-an-instance.md#variables-for-api

Thank you

@Yumega commented on GitHub (Oct 3, 2024): > you have to change the `API_PORT` env variable, too: https://github.com/imputnet/cobalt/blob/main/docs/run-an-instance.md#variables-for-api Thank you
Sign in to join this conversation.