Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add head stacks #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions run-head-mysql.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
docker rmi metabase/metabase-head:latest

cd stacks/metabase-head-mysql

docker-compose up
5 changes: 5 additions & 0 deletions run-head-postgres.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
docker rmi metabase/metabase-head:latest

cd stacks/metabase-head-postgres

docker-compose up
62 changes: 62 additions & 0 deletions stacks/metabase-head-mysql/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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
60 changes: 60 additions & 0 deletions stacks/metabase-head-postgres/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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