From 94c35b147364e18424469575497b5fe6fd277276 Mon Sep 17 00:00:00 2001 From: Luis Paolini Date: Wed, 10 Feb 2021 10:49:31 -0300 Subject: [PATCH] Add head stacks --- run-head-mysql.sh | 5 ++ run-head-postgres.sh | 5 ++ stacks/metabase-head-mysql/docker-compose.yml | 62 +++++++++++++++++++ .../metabase-head-postgres/docker-compose.yml | 60 ++++++++++++++++++ 4 files changed, 132 insertions(+) create mode 100644 run-head-mysql.sh create mode 100644 run-head-postgres.sh create mode 100644 stacks/metabase-head-mysql/docker-compose.yml create mode 100644 stacks/metabase-head-postgres/docker-compose.yml diff --git a/run-head-mysql.sh b/run-head-mysql.sh new file mode 100644 index 0000000..db1dc2d --- /dev/null +++ b/run-head-mysql.sh @@ -0,0 +1,5 @@ +docker rmi metabase/metabase-head:latest + +cd stacks/metabase-head-mysql + +docker-compose up \ No newline at end of file diff --git a/run-head-postgres.sh b/run-head-postgres.sh new file mode 100644 index 0000000..1b6ebd0 --- /dev/null +++ b/run-head-postgres.sh @@ -0,0 +1,5 @@ +docker rmi metabase/metabase-head:latest + +cd stacks/metabase-head-postgres + +docker-compose up \ No newline at end of file diff --git a/stacks/metabase-head-mysql/docker-compose.yml b/stacks/metabase-head-mysql/docker-compose.yml new file mode 100644 index 0000000..0dd0be3 --- /dev/null +++ b/stacks/metabase-head-mysql/docker-compose.yml @@ -0,0 +1,62 @@ +version: '3.7' +services: + metabase-head: + # image: metabase/metabase-enterprise-head:latest + image: metabase/metabase-head:latest + container_name: metabase-head + hostname: metabase-head + volumes: + - /dev/urandom:/dev/random:ro + ports: + - 3000:3000 + networks: + - metanet1 + environment: + - "MB_DB_DBNAME=metabase" + - "MB_DB_PORT=3306" + - "MB_DB_USER=metabase" + - "MB_DB_PASS=mysecretpassword" + - "MB_DB_HOST=mysql-head" + - "MB_DB_TYPE=mysql" + mysql-head: + image: mysql:8.0.21 + # image: mysql:5.7.32 + container_name: mysql-head + hostname: mysql-head + ports: + - 3306:3306 + environment: + - "MYSQL_ROOT_PASSWORD=mysecretpassword" + - "MYSQL_USER=metabase" + - "MYSQL_PASSWORD=mysecretpassword" + - "MYSQL_DATABASE=metabase" + command: ['--default-authentication-plugin=mysql_native_password'] + networks: + - metanet1 + sample-postgres-head: + image: metabase/qa-databases:postgres-sample-12 + container_name: postgres-sample-database-head + hostname: postgres-sample-database-head + # ports: + # - 5432:5432 + networks: + - metanet1 + sample-mysql-head: + image: metabase/qa-databases:mysql-sample-8 + container_name: mysql-sample-database-head + hostname: mysql-sample-database-head + # ports: + # - 5432:5432 + networks: + - metanet1 + sample-mongo-head: + image: metabase/qa-databases:mongo-sample-4.0 + container_name: mongo-sample-database-head + hostname: mongo-sample-database-head + # ports: + # - 5432:5432 + networks: + - metanet1 +networks: + metanet1: + driver: bridge \ No newline at end of file diff --git a/stacks/metabase-head-postgres/docker-compose.yml b/stacks/metabase-head-postgres/docker-compose.yml new file mode 100644 index 0000000..8352be3 --- /dev/null +++ b/stacks/metabase-head-postgres/docker-compose.yml @@ -0,0 +1,60 @@ +version: '3.7' +services: + metabase-head: + # image: metabase/metabase-enterprise-head:latest + image: metabase/metabase-head:latest + container_name: metabase-head + hostname: metabase-head + volumes: + - /dev/urandom:/dev/random:ro + - /$PWD/h2:/metabase.db + ports: + - 3000:3000 + networks: + - metanet1 + environment: + - "MB_DB_TYPE=postgres" + - "MB_DB_DBNAME=metabase" + - "MB_DB_PORT=5432" + - "MB_DB_USER=metabase" + - "MB_DB_PASS=mysecretpassword" + - "MB_DB_HOST=postgres-head" + postgres-head: + image: postgres:13.1 + container_name: postgres-head + hostname: postgres-head + # ports: + # - 5432:5432 + environment: + - "POSTGRES_USER=metabase" + - "POSTGRES_DB=metabase" + - "POSTGRES_PASSWORD=mysecretpassword" + networks: + - metanet1 + sample-postgres-head: + image: metabase/qa-databases:postgres-sample-12 + container_name: postgres-sample-database-head + hostname: postgres-sample-database-head + # ports: + # - 5432:5432 + networks: + - metanet1 + sample-mysql-head: + image: metabase/qa-databases:mysql-sample-8 + container_name: mysql-sample-database-head + hostname: mysql-sample-database-head + # ports: + # - 5432:5432 + networks: + - metanet1 + sample-mongo-head: + image: metabase/qa-databases:mongo-sample-4.0 + container_name: mongo-sample-database-head + hostname: mongo-sample-database-head + # ports: + # - 5432:5432 + networks: + - metanet1 +networks: + metanet1: + driver: bridge \ No newline at end of file