Git Product home page Git Product logo

pipe-bomb-server's Introduction

Pipe-Bomb-Server

Docker instructions

Before we run the server you will have to build the pipe bomb docker image by doing;

$ docker build -t "pipe-bomb-server" .

After the image is built you want to find a place to put the container in, personally I will do it in ~/docker/pipe-bomb-server. In the directory of your choosing make a compose.yml file which should look something like this.

services:
  pipe-bomb-server:
    image: pipe-bomb-server
    container_name: pipe-bomb-server
    ports:
      - "8000:8000"
    # volumes:
    #   - ./Config.json:/usr/src/app/Config.json
    #   # the database has a volume incase you want to move/backup or do anything else with the files
    #   - ./database/music.db:/usr/src/app/music.db
    #   - ./database/music.db-shm:/usr/src/app/music.db-shm
    #   - ./database/music.db-wal:/usr/src/app/music.db-wal
    restart: unless-stopped

Keep the volumes commented out at first so we can let pipe bomb generate the files needed for the volumes, to let pipe bomb generate them run the following command.

$ docker compose up

When you see something like the line API is listening on ___ it's done staring up and generating the files, you can now safely do CTRL-c to stop the server. Now we can uncomment the volumes but before we can run it again we must copy the generated files over.

$ docker cp pipe-bomb-server:/usr/src/app/Config.json .
$ mkdir database
$ docker cp pipe-bomb-server:/usr/src/app/music.db ./database/music.db
$ docker cp pipe-bomb-server:/usr/src/app/music.db-shm ./database/music.db-shm
$ docker cp pipe-bomb-server:/usr/src/app/music.db-wal ./database/music.db-wal

Feel free to edit the config as you like and once you are done with that you can run the server by doing this command (-d will run it in the background)

$ docker compose up

pipe-bomb-server's People

Contributors

eyezahhhh avatar lualttt avatar valoeghese avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.