From 1496cad647b3b5ecfb11a9f73b3ad9487aba8d9b Mon Sep 17 00:00:00 2001 From: Jyri-Petteri Paloposki Date: Fri, 17 Jul 2020 00:35:39 +0300 Subject: [PATCH] Created Docker image (markdown) --- Docker-image.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Docker-image.md diff --git a/Docker-image.md b/Docker-image.md new file mode 100644 index 0000000..ee42508 --- /dev/null +++ b/Docker-image.md @@ -0,0 +1,15 @@ +Docker is the easiest way to run Tracks, as the various library requirements have already been taken care of for you. + +You can run Tracks by installing Docker and launching a MySQL instance for example using + +$ docker run --name mariadb -t mariadb + +Create a database and a user for Tracks. Then build the Tracks image by running the following command in the Tracks repository root: + +$ docker build -t="tracks" . + +And then run an instance of the image using the following command (but replacing the database connection information appropriately) + +$ docker run -p 3000:3000 -e DATABASE_NAME=tracks_dev -e DATABASE_HOST=db -e DATABASE_PORT=5432 -e DATABASE_USERNAME=tracks_dev -e DATABASE_PASSWORD=password -e DATABASE_TYPE=mysql2 --name tracks --link mariadb:db -t tracks + +If all went to plan, you should now be able to reach Tracks in http://localhost:3000 . \ No newline at end of file