Ansible playbook for setup metabase.
- Metabase v0.40.1
- Store Metabase data to PostgreSQL
- Daemonize Metabase using Systemd
- Use Ubuntu 20.04 as base image
- Runs on port 80 by defualt which is useful for proxying
- Installs Fail2ban for security
Clone this repository.
Launch Ubuntu 20.04 server on AWS EC2 or something.
If you use AWS, open port 80
to the public in SecurityGroup setting.
Run Ansible.
ansible-playbook \
-i 11.22.333.444, \
--private-key /path/to/private/key \
playbooks/main.yml
Note that:
- Replace
11.22.333.444
with your instance's IP address.,
is needed after IP address. See this
- Replace
/path/to/private/key
with your instance's private key. - PostgreSQL's password is
postgres
. You must not expose port of5432
.
Open http://YOUR_IP_ADDRESS and play with metabase.
You might create a proxy to http://YOUR_IP_ADDRESS such as Cloudflare or CloudFront in order to improve security. Use whatever you want.