bertvandepoel / tabby

A friendly tool to manage debt
GNU Affero General Public License v3.0
71 stars 11 forks source link

Docker installation #13

Closed lyz-code closed 2 years ago

lyz-code commented 3 years ago

Hi, first thanks for the awesome development.

Do you plan to support Docker as an installation method?

It could be much easier for people to try your application.

lyz-code commented 3 years ago

Anyone interested in trying the application with docker can follow the next steps:

git clone https://github.com/bertvandepoel/tabby /tmp/tabby
cd /tmp/tabby

# Run the database
docker run -p 127.0.0.1:3306:3306  --name some-mariadb -e MARIADB_ROOT_PASSWORD=my-secret-pw -d mariadb

I had to connect to the database to create the tabby database

docker exec -it some-mariadb bash
mysql -u root -p localhost
create database tabby;

Now we can run the application:

docker run --link some-mariadb -v /tmp/tabby/:/app -p 127.0.0.1:80:80 webdevops/php-nginx 

When you're in http://localhost/, and it asks you for the database connection, in the host enter some-mariadb. You'll need to add an IBAN, you can use http://randomiban.com/ to create a fake one.

the-alpaka commented 2 years ago

Hi @lyz-code I actually just made a docker image with tabby built into it today. You can pull it from docker using 'docker pull thealpaka/tabby' Here's a link to my github with a more in-depth guide: https://github.com/the-alpaka/docker_tabby

lyz-code commented 2 years ago

Thanks @the-alpaka , I will take a look.