The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Docker cleanup (#7655)
BOHEUSa7a4052109a8
diff --git a/packages/twenty-docker/Makefile b/packages/twenty-docker/Makefileindex deee953f19c..e8d77b60bf5 100644--- a/packages/twenty-docker/Makefile+++ b/packages/twenty-docker/Makefile@@ -1,28 +1,3 @@-dev-build:- @docker compose -f dev/docker-compose.yml down -v- @docker compose -f dev/docker-compose.yml build--dev-up:- @docker compose -f dev/docker-compose.yml up -d--dev-start:- @docker compose -f dev/docker-compose.yml start--dev-stop:- @docker compose -f dev/docker-compose.yml stop--dev-down:- @docker compose -f dev/docker-compose.yml down -v--dev-sh:- @docker compose -f dev/docker-compose.yml exec twenty-dev sh--dev-postgres-build:- @docker stop twenty_postgres || true- @docker rm twenty_postgres || true- @docker volume rm twenty_db_data || true- @docker compose -f dev/docker-compose.yml up --build postgres -d-prod-build:@cd ../.. && docker build -f ./packages/twenty-docker/twenty/Dockerfile --tag twenty . && cd -diff --git a/packages/twenty-docker/twenty-website/Dockerfile b/packages/twenty-docker/twenty-website/Dockerfiledeleted file mode 100644index e3b7420ff76..00000000000--- a/packages/twenty-docker/twenty-website/Dockerfile+++ /dev/null@@ -1,29 +0,0 @@-FROM node:18.17.1-alpine as twenty-website-build---WORKDIR /app--COPY ./package.json .-COPY ./yarn.lock .-COPY ./.yarnrc.yml .-COPY ./.yarn/releases /app/.yarn/releases-COPY ./tools/eslint-rules /app/tools/eslint-rules-COPY ./packages/twenty-website/package.json /app/packages/twenty-website/package.json--RUN yarn--COPY ./packages/twenty-website /app/packages/twenty-website-RUN npx nx build twenty-website--FROM node:18.17.1-alpine as twenty-website--WORKDIR /app/packages/twenty-website--COPY --from=twenty-website-build /app /app--WORKDIR /app/packages/twenty-website--LABEL org.opencontainers.image.source=https://github.com/twentyhq/twenty-LABEL org.opencontainers.image.description="This image provides a consistent and reproducible environment for the website."--CMD ["/bin/sh", "-c", "npx nx start"]\ No newline at end of filediff --git a/packages/twenty-website/src/content/developers/local-setup.mdx b/packages/twenty-website/src/content/developers/local-setup.mdxindex 5bd90da66a6..6bae7137c22 100644--- a/packages/twenty-website/src/content/developers/local-setup.mdx+++ b/packages/twenty-website/src/content/developers/local-setup.mdx@@ -124,7 +124,7 @@ You can access the database at [localhost:5432](localhost:5432), with user `twen<ArticleTab>All the following steps are to be run in the WSL terminal (within your virtual machine)- <b>Option 1 :</b> To provision your database locally:+ <b>Option 1:</b> To provision your database locally:```bashmake postgres-on-linux```@@ -145,16 +145,33 @@ Twenty requires a redis cache to provide the best performances<ArticleTabs label1="Linux" label2="Mac OS" label3="Windows (WSL)"><ArticleTab>+ <b>Option 1:</b> To provision your Redis locally:Use the following link to install Redis on your Linux machine: [Redis Installation](https://redis.io/docs/latest/operate/oss_and_stack/install/install-redis/install-redis-on-linux/)++ <b>Option 2:</b> If you have docker installed:+ ```bash+ docker run -d --name my-redis-stack -p 6379:6379 redis/redis-stack-server:latest+ ```</ArticleTab><ArticleTab>- To provision your database locally with `brew`:+ <b>Option 1:</b>To provision your Redis locally with `brew`:```bashbrew install redis```++ <b>Option 2:</b> If you have docker installed:+ ```bash+ docker run -d --name my-redis-stack -p 6379:6379 redis/redis-stack-server:latest+ ```</ArticleTab><ArticleTab>+ <b>Option 1:</b> To provision your Redis locally:Use the following link to install Redis on your Linux virtual machine: [Redis Installation](https://redis.io/docs/latest/operate/oss_and_stack/install/install-redis/install-redis-on-linux/)++ <b>Option 2:</b> If you have docker installed:+ ```bash+ docker run -d --name my-redis-stack -p 6379:6379 redis/redis-stack-server:latest+ ```</ArticleTab></ArticleTabs>@@ -262,8 +279,4 @@ This should work out of the box with the eslint extension installed. If this doe}```-#### Docker container build--To successfully build Docker images, ensure that your system has a minimum of 2GB of memory available. For users of Docker Desktop, please verify that you've allocated sufficient resources to Docker within the application's settings.-<ArticleEditContent></ArticleEditContent>diff --git a/packages/twenty-website/src/content/developers/self-hosting/docker-compose.mdx b/packages/twenty-website/src/content/developers/self-hosting/docker-compose.mdxindex 833fffbcc43..14aa5821c94 100644--- a/packages/twenty-website/src/content/developers/self-hosting/docker-compose.mdx+++ b/packages/twenty-website/src/content/developers/self-hosting/docker-compose.mdx@@ -4,6 +4,10 @@ icon: TbBrandDockerimage: /images/user-guide/objects/objects.png---+<ArticleWarning>+Docker containers are for production hosting or self-hosting, for the contribution please check the [Local Setup](https://twenty.com/developers/local-setup).+</ArticleWarning>+## OverviewThis guide provides step-by-step instructions to install and configure the Twenty application using Docker Compose. The aim is to make the process straightforward and prevent common pitfalls that could break your setup.