Skip to content

Commit

Permalink
removed matomo from docker-compose.yml (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdentremont authored Jun 5, 2024
1 parent b6a553c commit 874847f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 52 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ configurations this template is set up for the following.
- `fcrepo` is included by default.
- `fits` is included by default.
- `mariadb` is used for the backend database (rather than `postgresql`).
- `matomo` is included by default.
- `solr` is included by default.
- etc.

Expand Down
1 change: 0 additions & 1 deletion README.template.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ access all the services at the following URLs.
| Blazegraph | https://blazegraph.islandora.dev/bigdata/ |
| Cantaloupe | https://islandora.dev/cantaloupe |
| Fedora | https://fcrepo.islandora.dev/fcrepo/rest/ |
| Matomo | https://islandora.dev/matomo/index.php |
| Solr | https://solr.islandora.dev |
| Traefik | https://traefik.islandora.dev |

Expand Down
48 changes: 0 additions & 48 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ volumes:
jetbrains-cache: {}
jetbrains-config: {}
mariadb-data: {}
matomo-data: {}
solr-data: {}

secrets:
Expand Down Expand Up @@ -122,10 +121,6 @@ secrets:
# openssl genrsa -out ./secrets/JWT_PRIVATE_KEY 2048 &>/dev/null
JWT_PRIVATE_KEY:
file: "./secrets/JWT_PRIVATE_KEY"
MATOMO_DB_PASSWORD:
file: "./secrets/MATOMO_DB_PASSWORD"
MATOMO_USER_PASS:
file: "./secrets/MATOMO_USER_PASS"

services:
alpaca-dev: &alpaca
Expand Down Expand Up @@ -316,7 +311,6 @@ services:
DRUPAL_DEFAULT_FCREPO_PORT: 8080
DRUPAL_DEFAULT_FCREPO_URL: "https://fcrepo.islandora.dev/fcrepo/rest/"
DRUPAL_DEFAULT_INSTALL_EXISTING_CONFIG: "true"
DRUPAL_DEFAULT_MATOMO_URL: "https://islandora.dev/matomo/"
DRUPAL_DEFAULT_NAME: "Islandora Digital Collections"
DRUPAL_DEFAULT_PROFILE: "minimal"
DRUPAL_DEFAULT_SITE_URL: "islandora.dev"
Expand Down Expand Up @@ -357,7 +351,6 @@ services:
DEVELOPMENT_ENVIRONMENT: false
DRUPAL_DEFAULT_CANTALOUPE_URL: "https://${DOMAIN}/cantaloupe/iiif/2"
DRUPAL_DEFAULT_FCREPO_URL: "https://fcrepo.${DOMAIN}/fcrepo/rest/"
DRUPAL_DEFAULT_MATOMO_URL: "https://${DOMAIN}/matomo/"
DRUPAL_DEFAULT_SITE_URL: "${DOMAIN}"
DRUPAL_DRUSH_URI: "https://${DOMAIN}"
labels:
Expand Down Expand Up @@ -516,47 +509,6 @@ services:
depends_on:
activemq-prod:
condition: service_started
matomo-dev: &matomo
<<: [*dev, *common]
image: ${ISLANDORA_REPOSITORY}/matomo:${ISLANDORA_TAG}
labels: &matomo-labels
<<: [*traefik-enable, *traefik-https-redirect-middleware]
traefik.http.middlewares.matomo-custom-request-headers.headers.customrequestheaders.X-Forwarded-Uri: /matomo
traefik.http.middlewares.matomo-append-slash.redirectregex.regex: ^(https?://[^/]+/matomo)$$
traefik.http.middlewares.matomo-append-slash.redirectregex.replacement: $${1}/
traefik.http.middlewares.matomo-strip-prefix.stripprefix.prefixes: /matomo
traefik.http.middlewares.matomo.chain.middlewares: matomo-append-slash,matomo-strip-prefix,matomo-custom-request-headers
traefik.http.routers.matomo_http.entrypoints: http
traefik.http.routers.matomo_http.middlewares: *traefik-https-redirect
traefik.http.routers.matomo_http.rule: &traefik-host-matomo-dev Host(`islandora.dev`) && PathPrefix(`/matomo`)
traefik.http.routers.matomo_http.service: matomo
traefik.http.routers.matomo_https.entrypoints: https
traefik.http.routers.matomo_https.middlewares: matomo
traefik.http.routers.matomo_https.rule: *traefik-host-matomo-dev
traefik.http.routers.matomo_https.tls: true
traefik.http.services.matomo.loadbalancer.server.port: 80
environment: &matomo-environment
MATOMO_DEFAULT_HOST: "https://islandora.dev"
volumes:
- matomo-data:/var/www/matomo:Z,rw
networks:
default:
aliases: # Allow access without using the `-dev` or `-prod` suffix.
- matomo
matomo-prod:
<<: [*prod, *matomo]
labels:
<<: [*matomo-labels]
traefik.http.routers.matomo_http.rule: &traefik-host-matomo-prod Host(`${DOMAIN}`) && PathPrefix(`/matomo`)
traefik.http.routers.matomo_https.rule: *traefik-host-matomo-prod
traefik.http.routers.matomo_https.tls.certresolver: *traefik-certresolver
environment:
<<: *matomo-environment
MATOMO_DEFAULT_HOST: "https://${DOMAIN}"
secrets:
- source: DB_ROOT_PASSWORD
- source: MATOMO_DB_PASSWORD
- source: MATOMO_USER_PASS
solr-dev: &solr
<<: [*dev, *common]
image: ${ISLANDORA_REPOSITORY}/solr:${ISLANDORA_TAG}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ $config['islandora.settings']['broker_url'] = file_get_contents($path . 'DRUPAL_
$config['islandora.settings']['broker_user'] = file_exists($path . 'DRUPAL_DEFAULT_BROKER_USER') ? file_get_contents($path . 'DRUPAL_DEFAULT_BROKER_USER') : NULL;
$config['islandora.settings']['broker_password'] = file_exists($path . 'DRUPAL_DEFAULT_BROKER_PASSWORD') ? file_get_contents($path . 'DRUPAL_DEFAULT_BROKER_PASSWORD') : NULL;
$config['islandora_iiif.settings']['iiif_server'] = file_get_contents($path . 'DRUPAL_DEFAULT_CANTALOUPE_URL');
$config['matomo.settings']['url_http'] = file_get_contents($path . 'DRUPAL_DEFAULT_MATOMO_URL');
$config['matomo.settings']['url_https'] = file_get_contents($path . 'DRUPAL_DEFAULT_MATOMO_URL');
$config['openseadragon.settings']['iiif_server'] = file_get_contents($path . 'DRUPAL_DEFAULT_CANTALOUPE_URL');
$config['search_api.server.default_solr_server']['backend_config']['connector_config']['host'] = file_get_contents($path . 'DRUPAL_DEFAULT_SOLR_HOST');
$config['search_api.server.default_solr_server']['backend_config']['connector_config']['port'] = file_get_contents($path . 'DRUPAL_DEFAULT_SOLR_PORT');
Expand Down

0 comments on commit 874847f

Please sign in to comment.