Skip to content

Instantly share code, notes, and snippets.

@peterson-umoke
Created February 26, 2026 14:08
Show Gist options
  • Select an option

  • Save peterson-umoke/e0c0d7ea24552907af14b0b3272ec331 to your computer and use it in GitHub Desktop.

Select an option

Save peterson-umoke/e0c0d7ea24552907af14b0b3272ec331 to your computer and use it in GitHub Desktop.
Dockerized SuiteCRM with MySQL
version: "3.8"
services:
mariadb:
image: bitnami/mariadb:latest
container_name: suitecrm_mariadb
restart: unless-stopped
environment:
- MARIADB_ROOT_PASSWORD=change_me_root_password
- MARIADB_DATABASE=bitnami_suitecrm
- MARIADB_USER=bn_suitecrm
- MARIADB_PASSWORD=change_me_db_password
volumes:
- mariadb_data:/bitnami/mariadb
suitecrm:
image: bitnamilegacy/suitecrm:8.8.1-debian-12-r1
container_name: suitecrm_app
restart: unless-stopped
depends_on:
- mariadb
ports:
- "19080:8080"
- "19443:8443"
environment:
- SUITECRM_DATABASE_HOST=mariadb
- SUITECRM_DATABASE_PORT_NUMBER=3306
- SUITECRM_DATABASE_USER=bn_suitecrm
- SUITECRM_DATABASE_NAME=bitnami_suitecrm
- SUITECRM_DATABASE_PASSWORD=change_me_db_password
# Optional: set the initial admin user/pass (supported by Bitnami-style SuiteCRM images)
- SUITECRM_USERNAME=admin
- SUITECRM_PASSWORD=change_me_admin_password
# API: allow CORS from the host-side port (19080) as well as plain localhost
- CORS_ALLOW_ORIGIN=^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$
volumes:
- suitecrm_data:/bitnami/suitecrm
# Local dev bind mounts — edit these on the host and changes reflect instantly in the container
- ./custom/extensions:/bitnami/suitecrm/extensions
- ./custom/legacy-custom:/bitnami/suitecrm/public/legacy/custom
volumes:
mariadb_data:
driver: local
suitecrm_data:
driver: local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment