Skip to content

Commit

Permalink
SuiteCRM: Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kulemantu committed Nov 1, 2022
1 parent c892313 commit affcbf9
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
10 changes: 10 additions & 0 deletions suitecrm/.env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
VIRTUAL_HOST=suitecrm.example.com
VIRTUAL_PORT=8095
LETSENCRYPT_EMAIL=[email protected]

MARIADB_HOST=mariadb
MARIADB_USER=suitecrm
MARIADB_DATABASE=suitecrm
MARIADB_PASSWORD=mariadbpassword
MARIADB_PORT_NUMBER=3306
ALLOW_EMPTY_PASSWORD=no
30 changes: 30 additions & 0 deletions suitecrm/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: '3'

services:
mariadb:
image: 'bitnami/mariadb:latest'
environment:
MARIADB_USER: ${MARIADB_USER}
MARIADB_DATABASE: ${MARIADB_DATABASE}
ALLOW_EMPTY_PASSWORD: ${ALLOW_EMPTY_PASSWORD}
volumes:
- mariadb_data:/bitnami

suitecrm:
image: 'bitnami/suitecrm:latest'
env_file: .env
volumes:
- 'suitecrm_data:/bitnami'
depends_on:
- mariadb
networks:
- proxy
- default

volumes:
mariadb_data:
suitecrm_data:

networks:
proxy:
external: true
15 changes: 15 additions & 0 deletions suitecrm/traefik.override.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
version: "3"

services:
suitecrm:
labels:
- traefik.enable=true
- traefik.http.routers.suitecrm-http.rule=Host(`${VIRTUAL_HOST}`)
- traefik.http.routers.suitecrm-http.entrypoints=web
- traefik.http.routers.suitecrm-http.middlewares=redirect
- traefik.http.middlewares.redirect.redirectscheme.scheme=https
- traefik.http.routers.suitecrm-https.rule=Host(`${VIRTUAL_HOST}`)
- traefik.http.routers.suitecrm-https.entrypoints=websecure
- traefik.http.routers.suitecrm-https.tls=true
- traefik.http.routers.suitecrm-https.tls.certresolver=letsencrypt
# - traefik.http.services.suitecrm.loadbalancer.server.port=${VIRTUAL_PORT}

0 comments on commit affcbf9

Please sign in to comment.