From d3470f61d454e736bffd6bb27cd24ffe663ddc49 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Wed, 18 Sep 2024 20:04:07 +0100 Subject: [PATCH] Update docker-compose.yml --- scripts/docker-compose.yml | 81 +++++++++++++++++++++----------------- 1 file changed, 44 insertions(+), 37 deletions(-) diff --git a/scripts/docker-compose.yml b/scripts/docker-compose.yml index 5f5983f6..a02955d6 100644 --- a/scripts/docker-compose.yml +++ b/scripts/docker-compose.yml @@ -1,40 +1,47 @@ -postgres: - image: postgres:latest - container_name: postgres-test - environment: - - "TZ=Europe/Amsterdam" - - "POSTGRES_USER=docker" - - "POSTGRES_PASSWORD=docker" - ports: - - "5432:5432" # credentials (docker:docker) +# For detailed information about docker-compose visit https://docs.docker.com/compose/ +# To start all docker containers required to execute the tests locally run: +# docker compose up -mysql: - image: mysql:latest - container_name: mysql-test - environment: - - "TZ=Europe/Amsterdam" - - "MYSQL_ROOT_PASSWORD=root" - ports: - - "3306:3306" # credentials (root:root) +version: '2.2' +services: + postgres: + image: postgres:latest + container_name: postgres-test + environment: + - "TZ=Europe/Amsterdam" + - "POSTGRES_USER=docker" + - "POSTGRES_PASSWORD=docker" + ports: + - "5432:5432" # credentials (docker:docker) -oracle: - image: oracleinanutshell/oracle-xe-11g - container_name: oracle-test - environment: - - "TZ=Europe/Amsterdam" - - "DBCA_TOTAL_MEMORY=1024" - ports: - - "1521:1521" # DB_CONN: credentials (system:oracle) + mysql: + image: mysql:latest + container_name: mysql-test + environment: + - "TZ=Europe/Amsterdam" + - "MYSQL_ROOT_PASSWORD=root" + ports: + - "3306:3306" # credentials (root:root) -sqlserver: - image: topaztechnology/mssql-server-linux - container_name: sqlserver-test - environment: - - "TZ=Europe/Amsterdam" - - "DBCA_TOTAL_MEMORY=1024" - - "ACCEPT_EULA=Y" - - "SQL_USER=docker" - - "SQL_PASSWORD=docker" - - "SQL_DB=docker" - ports: - - "1433:1433" # credentials (docker:docker) + oracle: + image: gvenzl/oracle-xe:21.3.0-slim-faststart + container_name: oracle-test + environment: + - "TZ=Europe/Amsterdam" + - "DBCA_TOTAL_MEMORY=1024" + - "ORACLE_PASSWORD=oracle" + ports: + - "1521:1521" # DB_CONN: credentials (system:oracle | pass: oracle) + + sqlserver: + image: topaztechnology/mssql-server-linux + container_name: sqlserver-test + environment: + - "TZ=Europe/Amsterdam" + - "DBCA_TOTAL_MEMORY=1024" + - "ACCEPT_EULA=Y" + - "SQL_USER=docker" + - "SQL_PASSWORD=docker" + - "SQL_DB=docker" + ports: + - "1433:1433" # credentials (docker:docker)