mirror of
https://github.com/twentyhq/twenty.git
synced 2024-12-24 12:34:10 +03:00
736635a94b
We will remove the `twenty-postgres` image that was used for local development and only use `twenty-postgres-pilo` (which we use in prod), bringing the development environment closer to prod and avoiding having to maintain 2 images. Instead of provisioning the super user after the db initialization, we directly rely on the superuser provided by Spilo for simplicity. We also introduce a change that tries to create the right database (`default` or `test`) based on the context. How to test: ``` docker build -t twentycrm/twenty-postgres-spilo:latest -f ./packages/twenty-docker/twenty-postgres-spilo/Dockerfile . docker images --no-trunc | grep twenty-postgres-spilo postgres-on-docker: docker run \ --name twenty_pg \ -e PGUSER_SUPERUSER=twenty \ -e PGPASSWORD_SUPERUSER=twenty \ -e ALLOW_NOSSL=true \ -v twenty_db_data:/home/postgres/pgdata \ -p 5432:5432 \ REPLACE_WITH_IMAGE_ID ``` |
||
---|---|---|
.. | ||
.terraform-docs.yml | ||
deployment-db.tf | ||
deployment-redis.tf | ||
deployment-server.tf | ||
deployment-worker.tf | ||
ingress.tf | ||
main.tf | ||
namespace.tf | ||
pv-db.tf | ||
pv-docker-data.tf | ||
pv-server.tf | ||
pvc-db.tf | ||
pvc-docker-data.tf | ||
pvc-server.tf | ||
README.md | ||
secret.tf | ||
service-db.tf | ||
service-redis.tf | ||
service-server.tf | ||
variables.tf |
TwentyCRM Terraform Docs
This file was generated by terraform-docs, for more information on how to install, configure, and use visit their website.
To update this README.md
after changes to the Terraform code in this folder, run: terraform-docs -c
./.terraform-docs.yml .`
To make configuration changes to how this doc is generated, see ./.terraform-docs.yml
Requirements
Name | Version |
---|---|
terraform | >= 1.9.2 |
kubernetes | >= 2.32.0 |
random | >= 3.6.3 |
Providers
Name | Version |
---|---|
kubernetes | >= 2.32.0 |
random | >= 3.6.3 |
Resources
Name | Type |
---|---|
kubernetes_deployment.twentycrm_db | resource |
kubernetes_deployment.twentycrm_redis | resource |
kubernetes_deployment.twentycrm_server | resource |
kubernetes_deployment.twentycrm_worker | resource |
kubernetes_ingress.twentycrm | resource |
kubernetes_namespace.twentycrm | resource |
kubernetes_persistent_volume.db | resource |
kubernetes_persistent_volume.docker_data | resource |
kubernetes_persistent_volume.server | resource |
kubernetes_persistent_volume_claim.db | resource |
kubernetes_persistent_volume_claim.docker_data | resource |
kubernetes_persistent_volume_claim.server | resource |
kubernetes_secret.twentycrm_tokens | resource |
kubernetes_service.twentycrm_db | resource |
kubernetes_service.twentycrm_redis | resource |
kubernetes_service.twentycrm_server | resource |
random_bytes.this | resource |
Inputs
Name | Description | Type | Default | Required |
---|---|---|---|---|
twentycrm_app_hostname | The protocol, DNS fully qualified hostname, and port used to access TwentyCRM in your environment. Ex: https://crm.example.com:443 | string |
n/a | yes |
twentycrm_pgdb_admin_password | TwentyCRM password for postgres database. | string |
n/a | yes |
twentycrm_app_name | A friendly name prefix to use for every component deployed. | string |
"twentycrm" |
no |
twentycrm_db_image | TwentyCRM image for database deployment. This defaults to latest. | string |
"twentycrm/twenty-postgres-spilo:latest" |
no |
twentycrm_db_pv_capacity | Storage capacity provisioned for database persistent volume. | string |
"10Gi" |
no |
twentycrm_db_pv_path | Local path to use to store the physical volume if using local storage on nodes. | string |
"" |
no |
twentycrm_db_pvc_requests | Storage capacity reservation for database persistent volume claim. | string |
"10Gi" |
no |
twentycrm_db_replicas | Number of replicas for the TwentyCRM database deployment. This defaults to 1. | number |
1 |
no |
twentycrm_docker_data_mount_path | TwentyCRM mount path for servers application data. Defaults to '/app/docker-data'. | string |
"/app/docker-data" |
no |
twentycrm_docker_data_pv_capacity | Storage capacity provisioned for server persistent volume. | string |
"10Gi" |
no |
twentycrm_docker_data_pv_path | Local path to use to store the physical volume if using local storage on nodes. | string |
"" |
no |
twentycrm_docker_data_pvc_requests | Storage capacity reservation for server persistent volume claim. | string |
"10Gi" |
no |
twentycrm_namespace | Namespace for all TwentyCRM resources | string |
"twentycrm" |
no |
twentycrm_redis_image | TwentyCRM image for Redis deployment. This defaults to latest. | string |
"redis/redis-stack-server:latest" |
no |
twentycrm_redis_replicas | Number of replicas for the TwentyCRM Redis deployment. This defaults to 1. | number |
1 |
no |
twentycrm_server_data_mount_path | TwentyCRM mount path for servers application data. Defaults to '/app/packages/twenty-server/.local-storage'. | string |
"/app/packages/twenty-server/.local-storage" |
no |
twentycrm_server_image | TwentyCRM server image for the server deployment. This defaults to latest. This value is also used for the workers image. | string |
"twentycrm/twenty:latest" |
no |
twentycrm_server_pv_capacity | Storage capacity provisioned for server persistent volume. | string |
"10Gi" |
no |
twentycrm_server_pv_path | Local path to use to store the physical volume if using local storage on nodes. | string |
"" |
no |
twentycrm_server_pvc_requests | Storage capacity reservation for server persistent volume claim. | string |
"10Gi" |
no |
twentycrm_server_replicas | Number of replicas for the TwentyCRM server deployment. This defaults to 1. | number |
1 |
no |
twentycrm_worker_replicas | Number of replicas for the TwentyCRM worker deployment. This defaults to 1. | number |
1 |
no |