From 0f210e0b6478c2c9a8dcd544a18738436fd6a39f Mon Sep 17 00:00:00 2001 From: Toby Bellwood Date: Wed, 2 Oct 2024 11:07:52 +1000 Subject: [PATCH] chore: add mysql8 to docker compose for testing --- docker-compose.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 8b2aad5bbd..87ac0a6143 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -5,9 +5,14 @@ volumes: services: api-db: - image: ${IMAGE_REPO:-lagoon}/api-db:${IMAGE_REPO_API_DB_TAG:-${IMAGE_REPO_TAG:-latest}} + image: uselagoon/mysql-8.0:latest ports: - '3366:3306' + command: mysqld --sql_mode="" + environment: + - MYSQL_USER=api + - MYSQL_PASSWORD=api + - MYSQL_DATABASE=infrastructure webhook-handler: image: ${IMAGE_REPO:-lagoon}/webhook-handler:${IMAGE_REPO_WEBHOOK_HANDLER_TAG:-${IMAGE_REPO_TAG:-latest}} ports: @@ -156,13 +161,19 @@ services: environment: - KEYCLOAK_FRONTEND_URL=http://localhost:8088/auth/ - KEYCLOAK_ADMIN_EMAIL=admin@example.com + - DB_VENDOR=mysql + - LAGOON_DB_VENDOR=mysql # Uncomment for local new relic tracking # - NEW_RELIC_LICENSE_KEY= # - NEW_RELIC_APP_NAME=keycloak-local keycloak-db: - image: ${IMAGE_REPO:-lagoon}/keycloak-db:${IMAGE_REPO_KEYCLOAK_DB_TAG:-${IMAGE_REPO_TAG:-latest}} + image: uselagoon/mysql-8.0:latest ports: - '3336:3306' + environment: + - MYSQL_USER=keycloak + - MYSQL_PASSWORD=keycloak + - MYSQL_DATABASE=keycloak tests-kubernetes: image: ${IMAGE_REPO:-lagoon}/tests:${IMAGE_REPO_TESTS_TAG:-${IMAGE_REPO_TAG:-latest}} environment: