# Instalação SuiteCRM 8 Bitnami

<span style="color: rgb(255, 255, 255);">Link: [<span style="color: rgb(255, 255, 255);">https://github.com/bitnami/containers/tree/main/bitnami/suitecrm</span>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm)  
Link de vídeos SuiteCRM:   
[https://www.youtube.com/@RFBSistemas/search?query=suitecrm](https://www.youtube.com/@RFBSistemas/search?query=suitecrm)  
[https://www.youtube.com/@GILHHB/search?query=suitecrm](https://www.youtube.com/@GILHHB/search?query=suitecrm)  
</span>

## <span style="color: rgb(255, 255, 255);">What is SuiteCRM?</span>

<div class="markdown-heading" dir="auto" id="bkmrk--1" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#what-is-suitecrm)</span></div>> <span style="color: rgb(255, 255, 255);">SuiteCRM is a completely open source, enterprise-grade Customer Relationship Management (CRM) application. SuiteCRM is a fork of the popular SugarCRM application.</span>

<span style="color: rgb(255, 255, 255);">[Overview of SuiteCRM](http://www.suitecrm.com/) Trademarks: This software listing is packaged by Bitnami. The respective trademarks mentioned in the offering are owned by the respective companies, and use of them does not imply any affiliation or endorsement.</span>

## <span style="color: rgb(255, 255, 255);">TL;DR</span>

<div class="markdown-heading" dir="auto" id="bkmrk--3" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#tldr)</span></div>```
docker run --name suitecrm bitnami/suitecrm:latest
```

<div class="zeroclipboard-container" id="bkmrk--5" style="text-align: justify;">  
</div><span style="color: rgb(255, 255, 255);">**Warning**: This quick setup is only intended for development environments. You are encouraged to change the insecure default credentials and check out the available configuration options in the [Environment Variables](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#environment-variables) section for a more secure deployment.</span>

## <span style="color: rgb(255, 255, 255);">Why use Bitnami Images?</span>

<div class="markdown-heading" dir="auto" id="bkmrk--6" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#why-use-bitnami-images)</span></div>- <span style="color: rgb(255, 255, 255);">Bitnami closely tracks upstream source changes and promptly publishes new versions of this image using our automated systems.</span>
- <span style="color: rgb(255, 255, 255);">With Bitnami images the latest bug fixes and features are available as soon as possible.</span>
- <span style="color: rgb(255, 255, 255);">Bitnami containers, virtual machines and cloud images use the same components and configuration approach - making it easy to switch between formats based on your project needs.</span>
- <span style="color: rgb(255, 255, 255);">All our images are based on [**minideb**](https://github.com/bitnami/minideb) -a minimalist Debian based container image that gives you a small base container image and the familiarity of a leading Linux distribution- or **scratch** -an explicitly empty image-.</span>
- <span style="color: rgb(255, 255, 255);">All Bitnami images available in Docker Hub are signed with [Notation](https://notaryproject.dev/). [Check this post](https://blog.bitnami.com/2024/03/bitnami-packaged-containers-and-helm.html) to know how to verify the integrity of the images.</span>
- <span style="color: rgb(255, 255, 255);">Bitnami container images are released on a regular basis with the latest distribution packages available.</span>

<span style="color: rgb(255, 255, 255);">Looking to use SuiteCRM in production? Try [VMware Tanzu Application Catalog](https://bitnami.com/enterprise), the commercial edition of the Bitnami catalog.</span>

## <span style="color: rgb(255, 255, 255);">Only the latest stable branch maintained in the free Bitnami catalog</span>

<div class="markdown-heading" dir="auto" id="bkmrk--8" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#only-the-latest-stable-branch-maintained-in-the-free-bitnami-catalog)</span></div><span style="color: rgb(255, 255, 255);">Starting December 10th, 2024, only the latest stable branch of each container image will receive updates in the free Bitnami catalog. To access up-to-date releases for all upstream-supported branches (e.g., LTS), consider upgrading to Bitnami Premium. Previously released versions will not be deleted and will remain available for pulling from DockerHub.</span>

<span style="color: rgb(255, 255, 255);">Please check the Bitnami Premium page in our partner [Arrow Electronics](https://www.arrow.com/globalecs/na/vendors/bitnami?utm_source=GitHub&utm_medium=containers) for more information.</span>

## <span style="color: rgb(255, 255, 255);">Supported tags and respective `Dockerfile` links</span>

<div class="markdown-heading" dir="auto" id="bkmrk--10" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#supported-tags-and-respective-dockerfile-links)</span></div><span style="color: rgb(255, 255, 255);">Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://techdocs.broadcom.com/us/en/vmware-tanzu/application-catalog/tanzu-application-catalog/services/tac-doc/apps-tutorials-understand-rolling-tags-containers-index.html).</span>

<span style="color: rgb(255, 255, 255);">You can see the equivalence between the different tags by taking a look at the `tags-info.yaml` file present in the branch folder, i.e `bitnami/ASSET/BRANCH/DISTRO/tags-info.yaml`.</span>

<span style="color: rgb(255, 255, 255);">Subscribe to project updates by watching the [bitnami/containers GitHub repo](https://github.com/bitnami/containers).</span>

## <span style="color: rgb(255, 255, 255);">Get this image</span>

<div class="markdown-heading" dir="auto" id="bkmrk--12" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#get-this-image)</span></div><span style="color: rgb(255, 255, 255);">The recommended way to get the Bitnami SuiteCRM Docker Image is to pull the prebuilt image from the [Docker Hub Registry](https://hub.docker.com/r/bitnami/suitecrm).</span>

```
docker pull bitnami/suitecrm:latest
```

<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" id="bkmrk--14" style="text-align: justify;"><div class="zeroclipboard-container">  
</div></div><span style="color: rgb(255, 255, 255);">To use a specific version, you can pull a versioned tag. You can view the [list of available versions](https://hub.docker.com/r/bitnami/suitecrm/tags/) in the Docker Hub Registry.</span>

```
docker pull bitnami/suitecrm:[TAG]
```

<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" id="bkmrk--15" style="text-align: justify;"><div class="zeroclipboard-container">  
</div></div><span style="color: rgb(255, 255, 255);">If you wish, you can also build the image yourself by cloning the repository, changing to the directory containing the Dockerfile and executing the `docker build` command. Remember to replace the `APP`, `VERSION` and `OPERATING-SYSTEM` path placeholders in the example command below with the correct values.</span>

```
git clone https://github.com/bitnami/containers.git
cd bitnami/APP/VERSION/OPERATING-SYSTEM
docker build -t bitnami/APP:latest .
```

<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" id="bkmrk--16" style="text-align: justify;"><div class="zeroclipboard-container">  
</div></div>## <span style="color: rgb(255, 255, 255);">How to use this image</span>

<div class="markdown-heading" dir="auto" id="bkmrk--17" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#how-to-use-this-image)</span></div><span style="color: rgb(255, 255, 255);">SuiteCRM requires access to a MySQL or MariaDB database to store information. We'll use the [Bitnami Docker Image for MariaDB](https://github.com/bitnami/containers/tree/main/bitnami/mariadb) for the database requirements.</span>

### <span style="color: rgb(255, 255, 255);">Using the Docker Command Line</span>

<div class="markdown-heading" dir="auto" id="bkmrk--19" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#using-the-docker-command-line)</span></div>#### <span style="color: rgb(255, 255, 255);">Step 1: Create a network</span>

<div class="markdown-heading" dir="auto" id="bkmrk--21" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#step-1-create-a-network)</span></div>```
docker network create suitecrm-network
```

<div class="zeroclipboard-container" id="bkmrk--23" style="text-align: justify;">  
</div>#### <span style="color: rgb(255, 255, 255);">Step 2: Create a volume for MariaDB persistence and create a MariaDB container</span>

<div class="markdown-heading" dir="auto" id="bkmrk--24" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#step-2-create-a-volume-for-mariadb-persistence-and-create-a-mariadb-container)</span></div>```
$ docker volume create --name mariadb_data
docker run -d --name mariadb \
  --env ALLOW_EMPTY_PASSWORD=yes \
  --env MARIADB_USER=bn_suitecrm \
  --env MARIADB_PASSWORD=bitnami \
  --env MARIADB_DATABASE=bitnami_suitecrm \
  --network suitecrm-network \
  --volume mariadb_data:/bitnami/mariadb \
  bitnami/mariadb:latest
```

<div class="zeroclipboard-container" id="bkmrk--26" style="text-align: justify;">  
</div>#### <span style="color: rgb(255, 255, 255);">Step 3: Create volumes for SuiteCRM persistence and launch the container</span>

<div class="markdown-heading" dir="auto" id="bkmrk--27" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#step-3-create-volumes-for-suitecrm-persistence-and-launch-the-container)</span></div>```
$ docker volume create --name suitecrm_data
docker run -d --name suitecrm \
  -p 8080:8080 -p 8443:8443 \
  --env ALLOW_EMPTY_PASSWORD=yes \
  --env SUITECRM_DATABASE_USER=bn_suitecrm \
  --env SUITECRM_DATABASE_PASSWORD=bitnami \
  --env SUITECRM_DATABASE_NAME=bitnami_suitecrm \
  --network suitecrm-network \
  --volume suitecrm_data:/bitnami/suitecrm \
  bitnami/suitecrm:latest
```

<div class="zeroclipboard-container" id="bkmrk--29" style="text-align: justify;">  
</div><span style="color: rgb(255, 255, 255);">Access your application at `http://your-ip/`</span>

### <span style="color: rgb(255, 255, 255);">Run the application using Docker Compose</span>

<div class="markdown-heading" dir="auto" id="bkmrk--30" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#run-the-application-using-docker-compose)</span></div>```
curl -sSL https://raw.githubusercontent.com/bitnami/containers/main/bitnami/suitecrm/docker-compose.yml > docker-compose.yml
docker-compose up -d
```

<div class="zeroclipboard-container" id="bkmrk--32" style="text-align: justify;">  
</div><span style="color: rgb(255, 255, 255);">Please be aware this file has not undergone internal testing. Consequently, we advise its use exclusively for development or testing purposes. For production-ready deployments, we highly recommend utilizing its associated [Bitnami Helm chart](https://github.com/bitnami/charts/tree/main/bitnami/suitecrm).</span>

<span style="color: rgb(255, 255, 255);">If you detect any issue in the `docker-compose.yaml` file, feel free to report it or contribute with a fix by following our [Contributing Guidelines](https://github.com/bitnami/containers/blob/main/CONTRIBUTING.md).</span>

## <span style="color: rgb(255, 255, 255);">Persisting your application</span>

<div class="markdown-heading" dir="auto" id="bkmrk--33" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#persisting-your-application)</span></div><span style="color: rgb(255, 255, 255);">If you remove the container all your data will be lost, and the next time you run the image the database will be reinitialized. To avoid this loss of data, you should mount a volume that will persist even after the container is removed.</span>

<span style="color: rgb(255, 255, 255);">For persistence you should mount a directory at the `/bitnami/suitecrm` path. If the mounted directory is empty, it will be initialized on the first run. Additionally you should [mount a volume for persistence of the MariaDB data](https://github.com/bitnami/containers/blob/main/bitnami/mariadb#persisting-your-database).</span>

<span style="color: rgb(255, 255, 255);">The above examples define the Docker volumes named `mariadb_data` and `suitecrm_data`. The SuiteCRM application state will persist as long as volumes are not removed.</span>

<span style="color: rgb(255, 255, 255);">To avoid inadvertent removal of volumes, you can [mount host directories as data volumes](https://docs.docker.com/engine/tutorials/dockervolumes/). Alternatively you can make use of volume plugins to host the volume data.</span>

### <span style="color: rgb(255, 255, 255);">Mount host directories as data volumes with Docker Compose</span>

<div class="markdown-heading" dir="auto" id="bkmrk--35" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#mount-host-directories-as-data-volumes-with-docker-compose)</span></div><span style="color: rgb(255, 255, 255);">This requires a minor change to the [`docker-compose.yml`](https://github.com/bitnami/containers/blob/main/bitnami/suitecrm/docker-compose.yml) file present in this repository:</span>

```
   mariadb:
     ...
     volumes:
-      - 'mariadb_data:/bitnami/mariadb'
+      - /path/to/mariadb-persistence:/bitnami/mariadb
   ...
   suitecrm:
     ...
     volumes:
-      - 'suitecrm_data:/bitnami/suitecrm'
+      - /path/to/suitecrm-persistence:/bitnami/suitecrm
   ...
-volumes:
-  mariadb_data:
-    driver: local
-  suitecrm_data:
-    driver: local
```

<div class="highlight highlight-source-diff notranslate position-relative overflow-auto" dir="auto" id="bkmrk--37" style="text-align: justify;"><div class="zeroclipboard-container">  
</div></div>### <span style="color: rgb(255, 255, 255);">Restoring persisted SuiteCRM installation</span>

<div class="markdown-heading" dir="auto" id="bkmrk--38" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#restoring-persisted-suitecrm-installation)</span></div><span style="color: rgb(255, 255, 255);">The entire directory of the SuiteCRM application will be persisted. To update the application, you will need to do it manualy. SuiteCRM does not offer any out-of-the-box tool to upgrade the database schema after an upgrade, so it will not be done automatically.</span>

### <span style="color: rgb(255, 255, 255);">Mount host directories as data volumes using the Docker command line</span>

<div class="markdown-heading" dir="auto" id="bkmrk--40" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#mount-host-directories-as-data-volumes-using-the-docker-command-line)</span></div>#### <span style="color: rgb(255, 255, 255);">Step 1: Create a network (if it does not exist)</span>

<div class="markdown-heading" dir="auto" id="bkmrk--42" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#step-1-create-a-network-if-it-does-not-exist)</span></div>```
docker network create suitecrm-network
```

<div class="zeroclipboard-container" id="bkmrk--44" style="text-align: justify;">  
</div>#### <span style="color: rgb(255, 255, 255);">Step 2. Create a MariaDB container with host volume</span>

<div class="markdown-heading" dir="auto" id="bkmrk--45" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#step-2-create-a-mariadb-container-with-host-volume)</span></div>```
docker run -d --name mariadb \
  --env ALLOW_EMPTY_PASSWORD=yes \
  --env MARIADB_USER=bn_suitecrm \
  --env MARIADB_PASSWORD=bitnami \
  --env MARIADB_DATABASE=bitnami_suitecrm \
  --network suitecrm-network \
  --volume /path/to/mariadb-persistence:/bitnami/mariadb \
  bitnami/mariadb:latest
```

<div class="zeroclipboard-container" id="bkmrk--47" style="text-align: justify;">  
</div>#### <span style="color: rgb(255, 255, 255);">Step 3. Create the SuiteCRM container with host volumes</span>

<div class="markdown-heading" dir="auto" id="bkmrk--48" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#step-3-create-the-suitecrm-container-with-host-volumes)</span></div>```
docker run -d --name suitecrm \
  -p 8080:8080 -p 8443:8443 \
  --env ALLOW_EMPTY_PASSWORD=yes \
  --env SUITECRM_DATABASE_USER=bn_suitecrm \
  --env SUITECRM_DATABASE_PASSWORD=bitnami \
  --env SUITECRM_DATABASE_NAME=bitnami_suitecrm \
  --network suitecrm-network \
  --volume /path/to/suitecrm-persistence:/bitnami/suitecrm \
  bitnami/suitecrm:latest
```

<div class="zeroclipboard-container" id="bkmrk--50" style="text-align: justify;">  
</div>## <span style="color: rgb(255, 255, 255);">Configuration</span>

<div class="markdown-heading" dir="auto" id="bkmrk--51" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#configuration)</span></div>### <span style="color: rgb(255, 255, 255);">Environment variables</span>

<div class="markdown-heading" dir="auto" id="bkmrk--53" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#environment-variables)</span></div>#### <span style="color: rgb(255, 255, 255);">Customizable environment variables</span>

<div class="markdown-heading" dir="auto" id="bkmrk--55" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#customizable-environment-variables)</span></div><table id="bkmrk-name-description-def"><thead><tr><th><span style="color: rgb(255, 255, 255);">Name</span></th><th><span style="color: rgb(255, 255, 255);">Description</span></th><th><span style="color: rgb(255, 255, 255);">Default Value</span></th></tr></thead><tbody><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_DATA_TO_PERSIST`</span></td><td><span style="color: rgb(255, 255, 255);">Files to persist relative to the SuiteCRM installation directory. To provide multiple values, separate them with a whitespace.</span></td><td><span style="color: rgb(255, 255, 255);">`$SUITECRM_BASE_DIR`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_SKIP_BOOTSTRAP`</span></td><td><span style="color: rgb(255, 255, 255);">Whether to perform initial bootstrapping for the application.</span></td><td><span style="color: rgb(255, 255, 255);">`nil`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_USERNAME`</span></td><td><span style="color: rgb(255, 255, 255);">SuiteCRM user name.</span></td><td><span style="color: rgb(255, 255, 255);">`user`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_PASSWORD`</span></td><td><span style="color: rgb(255, 255, 255);">SuiteCRM user password.</span></td><td><span style="color: rgb(255, 255, 255);">`bitnami`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_EMAIL`</span></td><td><span style="color: rgb(255, 255, 255);">SuiteCRM user e-mail address.</span></td><td><span style="color: rgb(255, 255, 255);">`user@example.com`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_HOST`</span></td><td><span style="color: rgb(255, 255, 255);">SuiteCRM server site URL.</span></td><td><span style="color: rgb(255, 255, 255);">`localhost`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_ENABLE_HTTPS`</span></td><td><span style="color: rgb(255, 255, 255);">Whether to use HTTPS by default.</span></td><td><span style="color: rgb(255, 255, 255);">`no`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_EXTERNAL_HTTP_PORT_NUMBER`</span></td><td><span style="color: rgb(255, 255, 255);">Port to used by SuiteCRM to generate URLs and links when accessing using HTTP.</span></td><td><span style="color: rgb(255, 255, 255);">`80`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_EXTERNAL_HTTPS_PORT_NUMBER`</span></td><td><span style="color: rgb(255, 255, 255);">Port to used by SuiteCRM to generate URLs and links when accessing using HTTPS.</span></td><td><span style="color: rgb(255, 255, 255);">`443`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_VALIDATE_USER_IP`</span></td><td><span style="color: rgb(255, 255, 255);">Whether or not to validate te user IP.</span></td><td><span style="color: rgb(255, 255, 255);">`true`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_SMTP_HOST`</span></td><td><span style="color: rgb(255, 255, 255);">SuiteCRM SMTP server host.</span></td><td><span style="color: rgb(255, 255, 255);">`nil`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_SMTP_PORT_NUMBER`</span></td><td><span style="color: rgb(255, 255, 255);">SuiteCRM SMTP server port number.</span></td><td><span style="color: rgb(255, 255, 255);">`nil`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_SMTP_USER`</span></td><td><span style="color: rgb(255, 255, 255);">SuiteCRM SMTP server user.</span></td><td><span style="color: rgb(255, 255, 255);">`nil`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_SMTP_PASSWORD`</span></td><td><span style="color: rgb(255, 255, 255);">SuiteCRM SMTP server user password.</span></td><td><span style="color: rgb(255, 255, 255);">`nil`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_SMTP_PROTOCOL`</span></td><td><span style="color: rgb(255, 255, 255);">SuiteCRM SMTP server protocol to use.</span></td><td><span style="color: rgb(255, 255, 255);">`nil`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_SMTP_NOTIFY_ADDRESS`</span></td><td><span style="color: rgb(255, 255, 255);">SuiteCRM email address to use in notifications.</span></td><td><span style="color: rgb(255, 255, 255);">`${SUITECRM_EMAIL}`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_SMTP_NOTIFY_NAME`</span></td><td><span style="color: rgb(255, 255, 255);">SuiteCRM name to use in notifications.</span></td><td><span style="color: rgb(255, 255, 255);">`SuiteCRM`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_DATABASE_HOST`</span></td><td><span style="color: rgb(255, 255, 255);">Database server host.</span></td><td><span style="color: rgb(255, 255, 255);">`$SUITECRM_DEFAULT_DATABASE_HOST`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_DATABASE_PORT_NUMBER`</span></td><td><span style="color: rgb(255, 255, 255);">Database server port.</span></td><td><span style="color: rgb(255, 255, 255);">`3306`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_DATABASE_NAME`</span></td><td><span style="color: rgb(255, 255, 255);">Database name.</span></td><td><span style="color: rgb(255, 255, 255);">`bitnami_suitecrm`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_DATABASE_USER`</span></td><td><span style="color: rgb(255, 255, 255);">Database user name.</span></td><td><span style="color: rgb(255, 255, 255);">`bn_suitecrm`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_DATABASE_PASSWORD`</span></td><td><span style="color: rgb(255, 255, 255);">Database user password.</span></td><td><span style="color: rgb(255, 255, 255);">`nil`</span></td></tr></tbody></table>

#### <span style="color: rgb(255, 255, 255);">Read-only environment variables</span>

<div class="markdown-heading" dir="auto" id="bkmrk--57" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#read-only-environment-variables)</span></div><table id="bkmrk-name-description-val"><thead><tr><th><span style="color: rgb(255, 255, 255);">Name</span></th><th><span style="color: rgb(255, 255, 255);">Description</span></th><th><span style="color: rgb(255, 255, 255);">Value</span></th></tr></thead><tbody><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_BASE_DIR`</span></td><td><span style="color: rgb(255, 255, 255);">SuiteCRM installation directory.</span></td><td><span style="color: rgb(255, 255, 255);">`${BITNAMI_ROOT_DIR}/suitecrm`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_CONF_FILE`</span></td><td><span style="color: rgb(255, 255, 255);">Configuration file for SuiteCRM.</span></td><td><span style="color: rgb(255, 255, 255);">`${SUITECRM_BASE_DIR}/public/legacy/config.php`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_SILENT_INSTALL_CONF_FILE`</span></td><td><span style="color: rgb(255, 255, 255);">Configuration file for the SuiteCRM silent installation wizard.</span></td><td><span style="color: rgb(255, 255, 255);">`${SUITECRM_BASE_DIR}/public/legacy/config_si.php`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_VOLUME_DIR`</span></td><td><span style="color: rgb(255, 255, 255);">SuiteCRM directory for mounted configuration files.</span></td><td><span style="color: rgb(255, 255, 255);">`${BITNAMI_VOLUME_DIR}/suitecrm`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_MOUNTED_CONF_FILE`</span></td><td><span style="color: rgb(255, 255, 255);">Mounted configuration file for SuiteCRM. It will be copied to the SuiteCRM installation directory during the initialization process.</span></td><td><span style="color: rgb(255, 255, 255);">`${SUITECRM_VOLUME_DIR}/config_si.php`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`SUITECRM_DEFAULT_DATABASE_HOST`</span></td><td><span style="color: rgb(255, 255, 255);">Default database server host.</span></td><td><span style="color: rgb(255, 255, 255);">`mariadb`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`PHP_DEFAULT_MEMORY_LIMIT`</span></td><td><span style="color: rgb(255, 255, 255);">Default PHP memory limit.</span></td><td><span style="color: rgb(255, 255, 255);">`256M`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`PHP_DEFAULT_POST_MAX_SIZE`</span></td><td><span style="color: rgb(255, 255, 255);">Default maximum size for PHP POST requests.</span></td><td><span style="color: rgb(255, 255, 255);">`60M`</span></td></tr><tr><td><span style="color: rgb(255, 255, 255);">`PHP_DEFAULT_UPLOAD_MAX_FILESIZE`</span></td><td><span style="color: rgb(255, 255, 255);">Default maximum file size for PHP uploads.</span></td><td><span style="color: rgb(255, 255, 255);">`60M`</span></td></tr></tbody></table>

<span style="color: rgb(255, 255, 255);">When you start the SuiteCRM image, you can adjust the configuration of the instance by passing one or more environment variables either on the docker-compose file or on the `docker run` command line. If you want to add a new environment variable:</span>

- <span style="color: rgb(255, 255, 255);">For docker-compose add the variable name and value under the application section in the [`docker-compose.yml`](https://github.com/bitnami/containers/blob/main/bitnami/suitecrm/docker-compose.yml) file present in this repository:</span>

```
suitecrm:
  ...
  environment:
    - SUITECRM_PASSWORD=my_password
  ...
```

<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" id="bkmrk--59" style="text-align: justify;"><div class="zeroclipboard-container">  
</div></div>- <span style="color: rgb(255, 255, 255);">For manual execution add a `--env` option with each variable and value:</span>
    
    ```
    docker run -d --name suitecrm -p 80:8080 -p 443:8443 \
      --env SUITECRM_PASSWORD=my_password \
      --network suitecrm-tier \
      --volume /path/to/suitecrm-persistence:/bitnami \
      bitnami/suitecrm:latest
    ```
    
    <div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>

### <span style="color: rgb(255, 255, 255);">Example</span>

<div class="markdown-heading" dir="auto" id="bkmrk--60" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#example)</span></div><span style="color: rgb(255, 255, 255);">This would be an example of SMTP configuration using a Gmail account:</span>

- <span style="color: rgb(255, 255, 255);">Modify the [`docker-compose.yml`](https://github.com/bitnami/containers/blob/main/bitnami/suitecrm/docker-compose.yml) file present in this repository:</span>

```
  suitecrm:
    ...
    environment:
      - SUITECRM_DATABASE_USER=bn_suitecrm
      - SUITECRM_DATABASE_NAME=bitnami_suitecrm
      - ALLOW_EMPTY_PASSWORD=yes
      - SUITECRM_SMTP_HOST=smtp.gmail.com
      - SUITECRM_SMTP_PROTOCOL=tls
      - SUITECRM_SMTP_PORT=587
      - SUITECRM_SMTP_USER=your_email@gmail.com
      - SUITECRM_SMTP_PASSWORD=your_password
  ...
```

<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" id="bkmrk--62" style="text-align: justify;"><div class="zeroclipboard-container">  
</div></div>- <span style="color: rgb(255, 255, 255);">For manual execution:</span>
    
    ```
    docker run -d --name suitecrm -p 80:8080 -p 443:8443 \
      --env SUITECRM_DATABASE_USER=bn_suitecrm \
      --env SUITECRM_DATABASE_NAME=bitnami_suitecrm \
      --env SUITECRM_SMTP_HOST=smtp.gmail.com \
      --env SUITECRM_SMTP_PORT=587 \
      --env SUITECRM_SMTP_PROTOCOL=tls \
      --env SUITECRM_SMTP_USER=your_email@gmail.com \
      --env SUITECRM_SMTP_PASSWORD=your_password \
      --network suitecrm-tier \
      --volume /path/to/suitecrm-persistence:/bitnami \
      bitnami/suitecrm:latest
    ```
    
    <div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto"><div class="zeroclipboard-container">  
    </div></div>

## <span style="color: rgb(255, 255, 255);">Logging</span>

<div class="markdown-heading" dir="auto" id="bkmrk--63" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#logging)</span></div><span style="color: rgb(255, 255, 255);">The Bitnami SuiteCRM Docker image sends the container logs to `stdout`. To view the logs:</span>

```
docker logs suitecrm
```

<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" id="bkmrk--65" style="text-align: justify;"><div class="zeroclipboard-container">  
</div></div><span style="color: rgb(255, 255, 255);">Or using Docker Compose:</span>

```
docker-compose logs suitecrm
```

<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" id="bkmrk--66" style="text-align: justify;"><div class="zeroclipboard-container">  
</div></div><span style="color: rgb(255, 255, 255);">You can configure the containers [logging driver](https://docs.docker.com/engine/admin/logging/overview/) using the `--log-driver` option if you wish to consume the container logs differently. In the default configuration docker uses the `json-file` driver.</span>

## <span style="color: rgb(255, 255, 255);">Maintenance</span>

<div class="markdown-heading" dir="auto" id="bkmrk--67" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#maintenance)</span></div>### <span style="color: rgb(255, 255, 255);">Backing up your container</span>

<div class="markdown-heading" dir="auto" id="bkmrk--69" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#backing-up-your-container)</span></div><span style="color: rgb(255, 255, 255);">To backup your data, configuration and logs, follow these simple steps:</span>

#### <span style="color: rgb(255, 255, 255);">Step 1: Stop the currently running container</span>

<div class="markdown-heading" dir="auto" id="bkmrk--71" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#step-1-stop-the-currently-running-container)</span></div>```
docker stop suitecrm
```

<div class="zeroclipboard-container" id="bkmrk--73" style="text-align: justify;">  
</div><span style="color: rgb(255, 255, 255);">Or using Docker Compose:</span>

```
docker-compose stop suitecrm
```

<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" id="bkmrk--74" style="text-align: justify;"><div class="zeroclipboard-container">  
</div></div>#### <span style="color: rgb(255, 255, 255);">Step 2: Run the backup command</span>

<div class="markdown-heading" dir="auto" id="bkmrk--75" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#step-2-run-the-backup-command)</span></div><span style="color: rgb(255, 255, 255);">We need to mount two volumes in a container we will use to create the backup: a directory on your host to store the backup in, and the volumes from the container we just stopped so we can access the data.</span>

```
docker run --rm -v /path/to/suitecrm-backups:/backups --volumes-from suitecrm busybox \
  cp -a /bitnami/suitecrm /backups/latest
```

<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" id="bkmrk--77" style="text-align: justify;"><div class="zeroclipboard-container">  
</div></div>### <span style="color: rgb(255, 255, 255);">Restoring a backup</span>

<div class="markdown-heading" dir="auto" id="bkmrk--78" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#restoring-a-backup)</span></div><span style="color: rgb(255, 255, 255);">Restoring a backup is as simple as mounting the backup as volumes in the containers.</span>

<span style="color: rgb(255, 255, 255);">For the MariaDB database container:</span>

```
 $ docker run -d --name mariadb \
   ...
-  --volume /path/to/mariadb-persistence:/bitnami/mariadb \
+  --volume /path/to/mariadb-backups/latest:/bitnami/mariadb \
   bitnami/mariadb:latest
```

<div class="highlight highlight-source-diff notranslate position-relative overflow-auto" dir="auto" id="bkmrk--80" style="text-align: justify;"><div class="zeroclipboard-container">  
</div></div><span style="color: rgb(255, 255, 255);">For the SuiteCRM container:</span>

```
 $ docker run -d --name suitecrm \
   ...
-  --volume /path/to/suitecrm-persistence:/bitnami/suitecrm \
+  --volume /path/to/suitecrm-backups/latest:/bitnami/suitecrm \
   bitnami/suitecrm:latest
```

<div class="highlight highlight-source-diff notranslate position-relative overflow-auto" dir="auto" id="bkmrk--81" style="text-align: justify;"><div class="zeroclipboard-container">  
</div></div>### <span style="color: rgb(255, 255, 255);">Upgrade this image</span>

<div class="markdown-heading" dir="auto" id="bkmrk--82" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#upgrade-this-image)</span></div><span style="color: rgb(255, 255, 255);">Bitnami provides up-to-date versions of MariaDB and SuiteCRM, including security patches, soon after they are made upstream. We recommend that you follow these steps to upgrade your container. We will cover here the upgrade of the SuiteCRM container. For the MariaDB upgrade see: [https://github.com/bitnami/containers/tree/main/bitnami/mariadb#upgrade-this-image](https://github.com/bitnami/containers/tree/main/bitnami/mariadb#upgrade-this-image)</span>

#### <span style="color: rgb(255, 255, 255);">Step 1: Get the updated image</span>

<div class="markdown-heading" dir="auto" id="bkmrk--84" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#step-1-get-the-updated-image)</span></div>```
docker pull bitnami/suitecrm:latest
```

<div class="zeroclipboard-container" id="bkmrk--86" style="text-align: justify;">  
</div>#### <span style="color: rgb(255, 255, 255);">Step 2: Stop the running container</span>

<div class="markdown-heading" dir="auto" id="bkmrk--87" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#step-2-stop-the-running-container)</span></div><span style="color: rgb(255, 255, 255);">Stop the currently running container using the command</span>

```
docker-compose stop suitecrm
```

<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" id="bkmrk--89" style="text-align: justify;"><div class="zeroclipboard-container">  
</div></div>#### <span style="color: rgb(255, 255, 255);">Step 3: Take a snapshot of the application state</span>

<div class="markdown-heading" dir="auto" id="bkmrk--90" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#step-3-take-a-snapshot-of-the-application-state)</span></div><span style="color: rgb(255, 255, 255);">Follow the steps in [Backing up your container](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#backing-up-your-container) to take a snapshot of the current application state.</span>

#### <span style="color: rgb(255, 255, 255);">Step 4: Remove the currently running container</span>

<div class="markdown-heading" dir="auto" id="bkmrk--92" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#step-4-remove-the-currently-running-container)</span></div><span style="color: rgb(255, 255, 255);">Remove the currently running container by executing the following command:</span>

```
docker-compose rm -v suitecrm
```

<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" id="bkmrk--94" style="text-align: justify;"><div class="zeroclipboard-container">  
</div></div>#### <span style="color: rgb(255, 255, 255);">Step 5: Run the new image</span>

<div class="markdown-heading" dir="auto" id="bkmrk--95" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#step-5-run-the-new-image)</span></div><span style="color: rgb(255, 255, 255);">Update the image tag in `docker-compose.yml` and re-create your container with the new image:</span>

```
docker-compose up -d
```

<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" id="bkmrk--97" style="text-align: justify;"><div class="zeroclipboard-container">  
</div></div>## <span style="color: rgb(255, 255, 255);">Customize this image</span>

<div class="markdown-heading" dir="auto" id="bkmrk--98" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#customize-this-image)</span></div><span style="color: rgb(255, 255, 255);">The Bitnami SuiteCRM Docker image is designed to be extended so it can be used as the base image for your custom web applications.</span>

### <span style="color: rgb(255, 255, 255);">Extend this image</span>

<div class="markdown-heading" dir="auto" id="bkmrk--100" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#extend-this-image)</span></div><span style="color: rgb(255, 255, 255);">Before extending this image, please note there are certain configuration settings you can modify using the original image:</span>

- <span style="color: rgb(255, 255, 255);">Settings that can be adapted using environment variables. For instance, you can change the ports used by Apache for HTTP and HTTPS, by setting the environment variables `APACHE_HTTP_PORT_NUMBER` and `APACHE_HTTPS_PORT_NUMBER` respectively.</span>
- <span style="color: rgb(255, 255, 255);">[Adding custom virtual hosts](https://github.com/bitnami/containers/blob/main/bitnami/apache#adding-custom-virtual-hosts).</span>
- <span style="color: rgb(255, 255, 255);">[Replacing the 'httpd.conf' file](https://github.com/bitnami/containers/blob/main/bitnami/apache#full-configuration).</span>
- <span style="color: rgb(255, 255, 255);">[Using custom SSL certificates](https://github.com/bitnami/containers/blob/main/bitnami/apache#using-custom-ssl-certificates).</span>

<span style="color: rgb(255, 255, 255);">If your desired customizations cannot be covered using the methods mentioned above, extend the image. To do so, create your own image using a Dockerfile with the format below:</span>

```
FROM bitnami/suitecrm
## Put your customizations below
...
```

<div class="highlight highlight-source-dockerfile notranslate position-relative overflow-auto" dir="auto" id="bkmrk--102" style="text-align: justify;"><div class="zeroclipboard-container">  
</div></div>## <span style="color: rgb(255, 255, 255);">Example 1</span>

<div class="markdown-heading" dir="auto" id="bkmrk--103" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#example-1)</span></div><span style="color: rgb(255, 255, 255);">Here is an example of extending the image with the following modifications:</span>

- <span style="color: rgb(255, 255, 255);">Install the `vim` editor</span>
- <span style="color: rgb(255, 255, 255);">Modify the Apache configuration file</span>
- <span style="color: rgb(255, 255, 255);">Modify the ports used by Apache</span>

```
FROM bitnami/suitecrm

## Install 'vim'
RUN install_packages vim

## Enable mod_ratelimit module
RUN sed -i -r 's/#LoadModule ratelimit_module/LoadModule ratelimit_module/' /opt/bitnami/apache/conf/httpd.conf

## Modify the ports used by Apache by default
# It is also possible to change these environment variables at runtime
ENV APACHE_HTTP_PORT_NUMBER=8181
ENV APACHE_HTTPS_PORT_NUMBER=8143
EXPOSE 8181 8143
```

<div class="highlight highlight-source-dockerfile notranslate position-relative overflow-auto" dir="auto" id="bkmrk--105" style="text-align: justify;"><div class="zeroclipboard-container">  
</div></div><span style="color: rgb(255, 255, 255);">Based on the extended image, you can update the [`docker-compose.yml`](https://github.com/bitnami/containers/blob/main/bitnami/suitecrm/docker-compose.yml) file present in this repository to add other features:</span>

```
   suitecrm:
-    image: bitnami/suitecrm:latest
+    build: .
     ports:
-      - '80:8080'
-      - '443:8443'
+      - '80:8181'
+      - '443:8143'
     environment:
+      - PHP_MEMORY_LIMIT=512m
     ...
```

<div class="highlight highlight-source-diff notranslate position-relative overflow-auto" dir="auto" id="bkmrk--106" style="text-align: justify;"><div class="zeroclipboard-container">  
</div></div>## <span style="color: rgb(255, 255, 255);">Example 2: Add SuiteCRM API support</span>

<div class="markdown-heading" dir="auto" id="bkmrk--107" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#example-2-add-suitecrm-api-support)</span></div>```
FROM bitnami/suitecrm
## Install keys
RUN openssl genrsa -out /opt/bitnami/suitecrm/Api/V8/OAuth2/private.key 2048 && \
    openssl rsa -in /opt/bitnami/suitecrm/Api/V8/OAuth2/private.key -pubout -out /opt/bitnami/suitecrm/Api/V8/OAuth2/public.key && \
    chmod 640 /opt/bitnami/suitecrm/Api/V8/OAuth2/private.key && \
    chgrp daemon /opt/bitnami/suitecrm/Api/V8/OAuth2/private.key /opt/bitnami/suitecrm/Api/V8/OAuth2/public.key
```

<div class="zeroclipboard-container" id="bkmrk--109" style="text-align: justify;">  
</div>## <span style="color: rgb(255, 255, 255);">Notable Changes</span>

<div class="markdown-heading" dir="auto" id="bkmrk--110" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#notable-changes)</span></div>### <span style="color: rgb(255, 255, 255);">7.11.18-debian-10-r13</span>

<div class="markdown-heading" dir="auto" id="bkmrk--112" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#71118-debian-10-r13)</span></div>- <span style="color: rgb(255, 255, 255);">The size of the container image has been decreased.</span>
- <span style="color: rgb(255, 255, 255);">The configuration logic is now based on Bash scripts in the *rootfs/* folder.</span>
- <span style="color: rgb(255, 255, 255);">`SUITECRM_HTTP_TIMEOUT` environment variable has been removed.</span>
- <span style="color: rgb(255, 255, 255);">The SuiteCRM container now supports the "non-root" user approach, but it still runs as the root user by default. When running as a non-root user, all services will be run under the same user and Cron jobs will be disabled as crond requires to be run as a superuser. To run as a non-root user, change USER root to USER 1001 in the Dockerfile, or use user: 1001 in docker-compose.yml. Related changes:</span>
- <span style="color: rgb(255, 255, 255);">The HTTP/HTTPS ports exposed by the container are now `8080/8443` instead of `80/443`.</span>
- <span style="color: rgb(255, 255, 255);">Backwards compatibility is not guaranteed when data is persisted using docker or docker-compose. We highly recommend migrating the SuiteCRM site by exporting its content, and importing it on a new SuiteCRM container.</span>

<span style="color: rgb(255, 255, 255);">To upgrade a deployment with the previous Bitnami SuiteCRM container image, which did not support non-root, the easiest way is to start the new image as a *root* user and updating the port numbers. Modify your `docker-compose.yml` file as follows:</span>

```
       - ALLOW_EMPTY_PASSWORD=yes
+    user: root
     ports:
-      - '80:80'
-      - '443:443'
+      - '80:8080'
+      - '443:8443'
     volumes:
```

<div class="highlight highlight-source-diff notranslate position-relative overflow-auto" dir="auto" id="bkmrk--114" style="text-align: justify;"><div class="zeroclipboard-container">  
</div></div>### <span style="color: rgb(255, 255, 255);">7.11.4-debian-9-r21 and 7.11.4-ol-7-r32</span>

<div class="markdown-heading" dir="auto" id="bkmrk--115" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#7114-debian-9-r21-and-7114-ol-7-r32)</span></div>- <span style="color: rgb(255, 255, 255);">This image has been adapted so it's easier to customize. See the [Customize this image](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#customize-this-image) section for more information.</span>
- <span style="color: rgb(255, 255, 255);">The Apache configuration volume (`/bitnami/apache`) has been deprecated, and support for this feature will be dropped in the near future. Until then, the container will enable the Apache configuration from that volume if it exists. By default, and if the configuration volume does not exist, the configuration files will be regenerated each time the container is created. Users wanting to apply custom Apache configuration files are advised to mount a volume for the configuration at `/opt/bitnami/apache/conf`, or mount specific configuration files individually.</span>
- <span style="color: rgb(255, 255, 255);">The PHP configuration volume (`/bitnami/php`) has been deprecated, and support for this feature will be dropped in the near future. Until then, the container will enable the PHP configuration from that volume if it exists. By default, and if the configuration volume does not exist, the configuration files will be regenerated each time the container is created. Users wanting to apply custom PHP configuration files are advised to mount a volume for the configuration at `/opt/bitnami/php/conf`, or mount specific configuration files individually.</span>
- <span style="color: rgb(255, 255, 255);">Enabling custom Apache certificates by placing them at `/opt/bitnami/apache/certs` has been deprecated, and support for this functionality will be dropped in the near future. Users wanting to enable custom certificates are advised to mount their certificate files on top of the preconfigured ones at `/certs`.</span>

### <span style="color: rgb(255, 255, 255);">7.10.10-debian-9-r18 and 7.10.10-ol-7-r24</span>

<div class="markdown-heading" dir="auto" id="bkmrk--117" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#71010-debian-9-r18-and-71010-ol-7-r24)</span></div>- <span style="color: rgb(255, 255, 255);">Due to several broken SuiteCRM features and plugins, the entire `htdocs` directory is now being persisted (instead of a select number of files and directories). Because of this, upgrades will not work and a full migration needs to be performed. Upgrade instructions have been updated to reflect these changes.</span>

## <span style="color: rgb(255, 255, 255);">Contributing</span>

<div class="markdown-heading" dir="auto" id="bkmrk--119" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#contributing)</span></div><span style="color: rgb(255, 255, 255);">We'd love for you to contribute to this container. You can request new features by creating an [issue](https://github.com/bitnami/containers/issues) or submitting a [pull request](https://github.com/bitnami/containers/pulls) with your contribution.</span>

## <span style="color: rgb(255, 255, 255);">Issues</span>

<div class="markdown-heading" dir="auto" id="bkmrk--121" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#issues)</span></div><span style="color: rgb(255, 255, 255);">If you encountered a problem running this container, you can file an [issue](https://github.com/bitnami/containers/issues/new/choose). For us to provide better support, be sure to fill the issue template.</span>

## <span style="color: rgb(255, 255, 255);">License</span>

<div class="markdown-heading" dir="auto" id="bkmrk--123" style="text-align: justify;"><span style="color: rgb(255, 255, 255);">[<svg aria-hidden="true" class="octicon octicon-link" height="16" version="1.1" viewbox="0 0 16 16" width="16"></svg>](https://github.com/bitnami/containers/tree/main/bitnami/suitecrm#license)</span></div><span style="color: rgb(255, 255, 255);">Copyright © 2025 Broadcom. The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.</span>

<span style="color: rgb(255, 255, 255);">Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at</span>

<span style="color: rgb(255, 255, 255);">[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)</span>

<span style="color: rgb(255, 255, 255);">Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.</span>