coolify icon indicating copy to clipboard operation
coolify copied to clipboard

Change the default coolify 3000 port

Open mkilinskidev opened this issue 2 years ago • 5 comments

Hi. I need to change the default 3000 port that coolify uses for the panel. How can I do that?

mkilinskidev avatar Apr 27 '22 18:04 mkilinskidev

I've tried to make my own docker-compose and I've changed the install.sh file, but the script doesn't use a custom docker-compose file.

mkilinskidev avatar May 06 '22 06:05 mkilinskidev

It's a must-have, many projects use port 3000.

gregfr avatar Jun 17 '22 15:06 gregfr

This is a much needed feature since I want to use it behind cloudflare, which doesn't support port 3000

amr3k avatar Jul 15 '22 15:07 amr3k

This is a much needed feature since I want to use it behind cloudflare, which doesn't support port 3000

Use Cloudflare Tunnel with the cloudflared process, which connects any port to Cloudflare for proxy. Two nice things are that you don't even have to open your firewall to use it, and the new UI for setting up makes it super easy.

https://github.com/cloudflare/cloudflared

Of course, this does not solve the original post about having 2 services on the same port, where neither will allow a default port change.

louis-eyond avatar Jul 15 '22 15:07 louis-eyond

Use Cloudflare Tunnel with the cloudflared process, which connects any port to Cloudflare for proxy. Two nice things are that you don't even have to open your firewall to it, and the new UI for setting up makes it super easy.

This is clever, I'm going to try it

amr3k avatar Jul 15 '22 15:07 amr3k

@mkilinskidev don't use the script, create your own docker-compose file. Here is mine, a slightly modified version from the image with scripts

version: '3.8'

services:
  coolify:
    image: coollabsio/coolify:latest
    restart: always
    # container_name: coolify
    ports:
      - target: 3000
        published: 3010
        protocol: tcp
        mode: host
    volumes:
      - 'coolify-db:/app/db'
      - 'coolify-logs:/app/logs'
      - 'coolify-ssl-certs:/app/ssl'
      - 'coolify-traefik-letsencrypt:/etc/traefik/acme'
      - 'coolify-letsencrypt:/etc/letsencrypt'
      - '/var/run/docker.sock:/var/run/docker.sock'
    env_file:
      - '.env'
    networks:
      - coolify-infra
  fluent-bit:
    image: coollabsio/coolify-fluent-bit:1.0.0
    # container_name: coolify-fluentbit
    volumes:
      - 'coolify-logs:/app/logs'
    networks:
      - coolify-infra
networks:
  coolify-infra:
    attachable: true
    name: coolify-infra

volumes:
  coolify-logs:
    name: coolify-logs
  coolify-db:
    name: coolify-db
  coolify-pgdb:
    name: coolify-pgdb
  coolify-ssl-certs:
    name: coolify-ssl-certs
  coolify-letsencrypt:
    name: coolify-letsencrypt
  coolify-traefik-letsencrypt:
    name: coolify-traefik-letsencrypt

kirill-dev-pro avatar Dec 05 '22 08:12 kirill-dev-pro