frappe / bench

CLI to manage Multi-tenant deployments for Frappe apps
https://frappeframework.com/docs/user/en/bench
GNU General Public License v3.0
1.41k stars 1.21k forks source link

Port other than 80 #1559

Open bonsaihorn opened 6 months ago

bonsaihorn commented 6 months ago

Issue: Easy Install

Do the checklist before filing an issue:

Distro Information (Required)

Paste the contents of

  1. uname -a

PRETTY_NAME="Debian GNU/Linux 12 (bookworm)" NAME="Debian GNU/Linux" VERSION_ID="12" VERSION="12 (bookworm)" VERSION_CODENAME=bookworm ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"

  1. cat /etc/*-release Linux raspberrypi1 6.1.0-rpi7-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64 GNU/Linux

Command Run (Required)

sudo python3 easy-install.py --prod --email bxxxxxx.com

Log File (Required)

BLANK

Screenshots

Error response from daemon: driver failed programming external connectivity on endpoint frappe-proxy-1 (4eefefb05ee9226f6da7183247681837e28bb49eec6323e49c82414c7c83165c): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use Docker Compose failed, please check the container logs Command '['/usr/bin/docker', 'compose', '-p', 'frappe', '-f', '/root/frappe-compose.yml', 'up', '-d']' returned non-zero exit status 1

Additional context

I tried --port but nothing, couldn't find a port command for the installer in the documentation only for after installed, I already have something on port 80, just wanted to see if the device could handle two services.

Possible Solution

a --port command for the installer?

revant commented 2 weeks ago

Do not use easy-install for setup that need to host multiple applications on a machine.

Use portainer or coolify or anything that allows you to add compose stacks.

Check this https://github.com/castlecraft/custom_containers/blob/main/docs/docker-swarm.md