twentyhq / twenty

Building a modern alternative to Salesforce, powered by the community.
https://twenty.com
GNU Affero General Public License v3.0
15.7k stars 1.7k forks source link

Help Setting Up Twenty CRM on AWS Lightsail #6137

Closed muzzamilshaikh closed 4 days ago

muzzamilshaikh commented 2 months ago

Hi there,

I'm interested in using Twenty CRM and am trying to set it up on an AWS Lightsail instance. However, I'm fairly new to self-hosting applications and could use some guidance on the process.

Could you please point me in the right direction for setting up Twenty CRM on AWS Lightsail? Any specific resources or guides you recommend would be greatly appreciated.

Additionally, if there are any general recommendations for new users regarding instance types, resource allocation, or LAMP stack configuration on Lightsail for Twenty CRM, I'd be grateful for any insights.

I appreciate your help!

greptile-apps[bot] commented 2 months ago

To set up Twenty CRM on AWS Lightsail, follow these steps:

  1. Create an AWS Lightsail Instance: Choose an instance type with at least 2GB RAM.

  2. Install Docker and Docker Compose:

    sudo apt-get update
    sudo apt-get install docker.io
    sudo apt-get install docker-compose
  3. Clone the Repository:

    git clone https://github.com/twentyhq/twenty.git
    cd twenty/packages/twenty-docker
  4. Configure Environment Variables: Create a .env file with the necessary environment variables (e.g., PG_DATABASE_HOST, SERVER_URL, etc.).

  5. Run Docker Compose:

    sudo docker-compose up -d
  6. Access the Application: Once the services are up, access the application via the instance's public IP on port 3000.

Refer to the docker-compose.yml and Dockerfile in the twenty-docker directory for more details on service configurations.

References

/packages/twenty-docker/docker-compose.yml /packages/twenty-docker/twenty/Dockerfile /packages/twenty-docker/twenty/entrypoint.sh /packages/twenty-docker

#### About Greptile This response provides a starting point for your research, not a precise solution. Help us improve! Please leave a ๐Ÿ‘ if this is helpful and ๐Ÿ‘Ž if it is irrelevant. [Ask Greptile](https://app.greptile.com/chat/github/twentyhq/twenty/main) ยท [Edit Issue Bot Settings](https://app.greptile.com/apps/github)
muzzamilshaikh commented 2 months ago

what about the backend? how do I set up that?

aficiomaquinas commented 2 months ago

I answered your question on Stack Overflow https://stackoverflow.com/a/78727948/697892

FelixMalfait commented 4 days ago

Thanks @aficiomaquinas! And sorry we're not more pro-active on helping with self-hosting. Twenty still lacks critical feature and so the team is 100% focused on feature development for now but making self-hosting really easy will become a priority later