Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 762 Bytes

DOCKER.md

File metadata and controls

37 lines (25 loc) · 762 Bytes

Docker Deployment

Follow these steps to have YoutubeMP3 running inside a Docker container. This tutorial assumes you have Docker and docker-compose installed.

  • Clone the repo and cd into it
$ git clone https://github.com/aviaryan/youtube-mp3-server.git && cd youtube-mp3-server
  • Build the image
$ docker-compose build
  • Run the app
$ docker-compose up
  • Open a new shell and run the following command.
docker-compose run postgres psql -h postgres -p 5432 -U postgres --password
# enter password as test
  • When in psql shell, create the database and then exit using \q.
create database anyaudio;
  • Close the server and then start it again. Then navigate to http://localhost to view the app.