You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use this docker compose (Portainer use port 9000, so i use 13000/13001):
version: '3.5'
services:
cobalt-api:
image: ghcr.io/wukko/cobalt:7
restart: unless-stopped
container_name: cobalt-api
init: true
# if container doesn't run detached on your machine, uncomment the next line:
#tty: true
ports:
- 13000:13000/tcp
# if you're using a reverse proxy, uncomment the next line:
#- 127.0.0.1:9000:9000
environment:
# replace apiURL with your instance's target url in same format
- apiURL=http://192.168.0.220:13000/
# replace apiName with your instance's distinctive name
- apiName=eu-fr
# if you want to use cookies when fetching data from services, uncomment the next line
#- cookiePath=/cookies.json
# see cookies_example.json for example file.
labels:
- com.centurylinklabs.watchtower.scope=cobalt
# if you want to use cookies when fetching data from services, uncomment volumes and next line
#volumes:
#- ./cookies.json:/cookies.json
cobalt-web:
image: ghcr.io/wukko/cobalt:7
restart: unless-stopped
container_name: cobalt-web
init: true
# if container doesn't run detached on your machine, uncomment the next line:
#tty: true
ports:
- 13001:13001/tcp
# if you're using a reverse proxy, uncomment the next line:
#- 127.0.0.1:9001:9001
environment:
# replace webURL with your instance's target url in same format
- webURL=http://192.168.0.220:13001/
# replace apiURL with preferred api instance url
- apiURL=http://192.168.0.220:13000/
labels:
- com.centurylinklabs.watchtower.scope=cobalt
# update the cobalt image automatically with watchtower
watchtower:
image: ghcr.io/containrrr/watchtower
restart: unless-stopped
command: --cleanup --scope cobalt --interval 900
volumes:
- /var/run/docker.sock:/var/run/docker.sock
Submit the form, and the stack is created without issue.
In the Containers view, i now have three new containers :
I added the three cobalt containers to the network i use for my others services :
When i go to 192.168.0.220:13001 (my Unraid server ip + the port for the Web), i can't reach the site :
Strange thing, i can see in the log, for the api :
cobalt API v.7.10.2-3356966 (current)
Start time: Sun, 11 Feb 2024 17:02:20 GMT (1707670940307)
URL: http://192.168.0.220:13000/
Port: 9000
The port seems to be 9000 (which is the one used by Portainer)
And the log for the web :
cobalt WEB v.7.10.2-3356966 (current)
Start time: Sun, 11 Feb 2024 17:02:19 GMT (1707670939498)
URL: http://192.168.0.220:13001/
Port: 9001
Port 9001 is used by mosquitto server.
platform
OS: Unraid 6.12.6 + Portainer CE 2.19.4
browser: firefox
version: 122
additional context
This is the first time i use docker compose with Portainer, so it can be something i made wrong.
I also deploy cobalt using github/npm on my Macbook, and it is working fine, but i am more used to.
Thanks for your help, and sorry if it is not an issue, juste a mistake made by me.
K.
The text was updated successfully, but these errors were encountered:
hi, the default ports are 9000/9001, so you either need to specify an environment variable like apiPort=13000 (similarly webPort for web), or change the righthand side of the ports item to say 9000 and 9001 (like 13000:9000/tcp and 13001:9001/tcp)
Hello,
I love and use cobalt.tools a lot, and wanted to give a try self-hosted my instance.
bug description
I have a UNRAID server, where I have installed Portainer.
When I deploy, everything goes fine, but I can't access the service.
reproduction steps
Inside Portainer, select Stacks > Add stack.
Use this docker compose (Portainer use port 9000, so i use 13000/13001):
Submit the form, and the stack is created without issue.
In the Containers view, i now have three new containers :
I added the three cobalt containers to the network i use for my others services :
When i go to 192.168.0.220:13001 (my Unraid server ip + the port for the Web), i can't reach the site :
Strange thing, i can see in the log, for the api :
The port seems to be 9000 (which is the one used by Portainer)
And the log for the web :
Port 9001 is used by mosquitto server.
platform
additional context
This is the first time i use docker compose with Portainer, so it can be something i made wrong.
I also deploy cobalt using github/npm on my Macbook, and it is working fine, but i am more used to.
Thanks for your help, and sorry if it is not an issue, juste a mistake made by me.
K.
The text was updated successfully, but these errors were encountered: