Invoice Ninja (Official Image) Installed in Docker 2022

Поделиться
HTML-код
  • Опубликовано: 15 июл 2024
  • Invoice Ninja is: Invoices, Expenses and Tasks built with Laravel and Flutter.
    In this video we'll take a look at installing the official Invoice Ninja Docker image using command line (CLI).
    The process is pretty straightforward as we'll just need to clone the repository onto our server, modify the ENV file and the docker-compose.yml file for our specific needs and then deploy.
    You'll also probably need to and your PUID/PGID settings to the docker-compose as I demonstrate in the video as well as chmod a directory so that we have the read/write permissions the app needs to deploy.
    Resources:
    hub.docker.com/r/invoiceninja...
    github.com/invoiceninja/docke...
    Timestamps:
    0:00 Intro
    1:39 Demo
    2:26 Github Repository
    2:58 Cloning the Repository
    4:25 Docker-Compose and ENV File First Look
    11:32 Custom Docker-Compose and ENV Files
    15:00 Getting PUID and PGID
    16:02 Deploying Invoice Ninja
    19:29 Wrap Up
    /=========================================/
    Get early, ad-free access to new content by becoming a channel member, a Patron or signing up for the members' only website!
    ✅ / dbtech
    ✅ dbtech.fans/
    ✅ / @dbtechyt
    /=========================================/
    The hardware in my recording studio is:
    ✔ Custom PC w/ Ryzen 2600, 32GB RAM, RTX 2070, Assorted Storage
    ✔ Panasonic LUMIX G7 4K Digital Camera: amzn.to/3IGEOcb
    ✔ SAMSUNG 34-Inch SJ55W Ultrawide Monitor: amzn.to/395g9BZ
    ✔ LG 27UK650-W 27” UHD IPS Display with HDR 10: amzn.to/398pg4S
    ✔ WALI Premium Dual Monitor Stand: amzn.to/398AiqM
    ✔ Neewer Lights: amzn.to/3nZcoSX
    ✔ Light Power Supply:amzn.to/3Konpqf
    ✔ 55" Gaming Desk: amzn.to/3AkgHgw
    ✔ Sabrent USB-C Hub: amzn.to/3qFcwbV
    ✔ Das Keyboard 4 Professional: amzn.to/3G9rPxM
    ✔ Fuqido Big and Tall Gaming Chair: amzn.to/3IGegrq
    /=========================================/
    The hardware in my current home servers:
    ✔ Synology DS1621xs+ (provided by Synology): amzn.to/2ZwTMgl
    ✔ 6x8TB Seagate Exos Enterprise HDDs (provided by Synology): amzn.to/3auLdcb
    ✔ 16GB DDR4 ECC RAM (provided by Synology): amzn.to/3do7avd
    ✔ 2TB NVMe Caching Drive (provided by Sabrent): amzn.to/3dwPCxj
    ✔ TerraMaster F5-221 (provided by TerraMaster): amzn.to/3IfH2QD
    ✔ 5x6TB WD Red Plus NAS: amzn.to/3LnbPvC
    ✔ 8GB DDR3: amzn.to/3kfLTX3
    ✔ TerraMaster F4-423 (provided by TerraMaster): amzn.to/3kjUms5
    ✔ 2x8TB Seagate Barracuda Compute: amzn.to/3xBAO95
    ✔ 16GB TEAMGROUP Elite DDR4: amzn.to/3MzzFV9
    ✔ 512GB Silicon Power NVMe Caching Drive: amzn.to/3MzkBae
    All amzn.to links are affiliate links.
    /=========================================/
    ✨Find all my social accounts here:
    ✅ dbte.ch/
    ✨Ways to support DB Tech:
    ✅ / dbtech
    ✅ www.paypal.me/DBTechReviews
    ✅ ko-fi.com/dbtech
    ✅ Cashapp: cash.app/$dbtechyt
    ✅ Venmo: venmo.com/dbtechyt
    ✨Come chat in Discord:
    ✅ dbte.ch/discord
    ✨Join this channel to get access to perks:
    ✅ / @dbtechyt
    ✨Hardware (Affiliate Links):
    ✅ TinyPilot KVM: dbte.ch/tpkvm
    ✅ LattePanda Delta 432: dbte.ch/dfrobot
    ✅ Lotmaxx SC-10 Shark: dbte.ch/sc10shark
    ✅ EchoGear 10U Rack: dbte.ch/echogear10u
  • НаукаНаука

Комментарии • 48

  • @Tom-nq9fd
    @Tom-nq9fd Год назад +3

    I've been waiting for an updated video on this. Thank you!

    • @DBTechYT
      @DBTechYT  Год назад +3

      I've been waiting for my brain to work well enough to make this video! 🤪🤪

  • @michaeldimartino5389
    @michaeldimartino5389 Год назад +4

    Goof how to and thankyou for putting it up. Just one thing, every tutorial should include a list of the ALL the pre req's/

  • @noneofyourconcern4566
    @noneofyourconcern4566 Год назад +1

    Thank you 😊

  • @chrisdedavid1860
    @chrisdedavid1860 Год назад +2

    4:00 Git Clone into current directory, you can just add " . " to the end of the statement as a reference to the current folder/directory, otherwise it will create a folder with the same name as the repo'.
    Note: Only if the current folder is empty, otherwise it will error.
    Alternatively: after "mkdir ninja", you could have cloned to that empty folder by just adding " ninja" to the end of the clone statement directing it to clone to that empty folder instead of the default behaviour.

  • @404Thoughts
    @404Thoughts Год назад +2

    Thanks for this, I'm hoping you can do an updated one for the official akaunting image

    • @DBTechYT
      @DBTechYT  Год назад +1

      Thanks for watching!! I'll add Akaunting to my todo list!

  • @pabss3193
    @pabss3193 Год назад +2

    What is extra_hosts used for?

  • @davidnickel3949
    @davidnickel3949 Год назад

    i hit the bell:)

  • @fdeproductions1233
    @fdeproductions1233 Год назад +8

    18:20 Looking over the GitHub page it shows: To ensure folder permissions are correct when the container comes up for the first time it is important that you set the correct folder permissions on the docker folder.
    From the terminal run
    chmod 755 docker/app/public
    sudo chown -R 1500:1500 docker/app
    the second command is what is missing as you do not want to run the app folder/container as root.
    I came across a caching bug advises to run /update?secret=secret to reset the caching issue

  • @drbyte2009
    @drbyte2009 Год назад +1

    Thnx a lot Davod! I was struggling this week with the older setup.
    Is it possible to do this setup in a stack?

    • @DBTechYT
      @DBTechYT  Год назад +2

      You could if you wanted to figure out how to put all of the contents of the ENV file into the stack

    • @drbyte2009
      @drbyte2009 Год назад

      @@DBTechYT I'am gonna take some time 🙂

  • @CraigGibson-xw2dc
    @CraigGibson-xw2dc Год назад +1

    Great video, thanks for the time and effort you have put into making it.
    I'm trying to install on a synology NAS but after following all of the steps and running docker-compose up -d it cannot start the service db.
    It looks like the prerequisites for running invoice ninja are mysql:8 and nginx. Are these installed as part of the docker-compose up -d command or should they be installed prior to running?
    Both of the above show in docker under Image but not as containers.
    Any help appreciated. Thanks

    • @CraigGibson-xw2dc
      @CraigGibson-xw2dc Год назад +2

      I managed to figure this out and got things working.
      It turns out there are two folders missing from the git clone. Inside the docker folder there should be a folder called mysql and within this a folder called data. Initially these are just empty folders which are populated when the database is created so they can just be created manually.
      As mentioned in the video, viewing the portainer logs for each of the 3 containers, after they have been created is important. This shows if the database has created properly, it's linking with the app and that the server is running correcty.
      Also please note that after creating the containers it took about 20mins before I could access the web interface. I noticed on the app portainer log it took some time to create the tables etc.
      Hope this helps anyone having the same problem.

  • @ChamunksArkturus
    @ChamunksArkturus Год назад

    Are you able to run this without the built in nginx?

  • @jan-lucadiehl5405
    @jan-lucadiehl5405 Год назад +2

    Hi, I have the problem that I cannot choose German or English language and the right currencies after first logging in to invoiceninja. I just get the arabic, bulgarian and stuff like that. Does anyone has the same problem? Thanks a lot :)

    • @HillelCoren
      @HillelCoren 9 месяцев назад

      It sounds like the cache may be incomplete, you can refresh it by loading /update?secret=[secret from .env file], Note: this problem should be resolved in the latest version of the app.

  • @adbrainfilm
    @adbrainfilm Год назад

    Hey. If you self host Invoice ninja, can you then use the apps on Mac or IOS normally as you would with the paid service? Do you know if this way it is fully free or is there a subscription for anything? Have a great day!

    • @HillelCoren
      @HillelCoren 9 месяцев назад

      If you're self-hosting the app you can freely use all of the desktop (Windows, macOS, Linux) and mobile (iOS, Android) apps.

  • @bbrendon
    @bbrendon Год назад

    This gets it running but many of the buttons in the UI don't work. Did you actually log in and create invoices/quotes? I can't create any.

    • @DBTechYT
      @DBTechYT  Год назад

      I would submit an issue on their GitHub

  • @riaangrobler3447
    @riaangrobler3447 Год назад +1

    Email Sending - Struggled for a long time with email not sending out. MAIL_MAILER=log must be changed to MAIL_MAILER=smtp , otherwise NO email will be send out , but just logged. 😆, No Idea why anyone would want to keep it at "log" as no invoices will be sent to clients...

  • @richardgarnett5779
    @richardgarnett5779 Год назад

    Anyone know why im getting a 500 - Server error? i followed this to the t

    • @HillelCoren
      @HillelCoren 9 месяцев назад

      There should be more details about the error in storage/logs or the web server error logs

  • @TheInfamousToTo
    @TheInfamousToTo Год назад

    try Crater Invoices

  • @firebird7515
    @firebird7515 Год назад +1

    Can it be deploy in a raspberry pi??

    • @DBTechYT
      @DBTechYT  Год назад +2

      I believe it can. I actually talk about the settings for that in the video when we look at the docker-compose.

  • @denbroc
    @denbroc Год назад

    can i install it in a computer in my ofice?

    • @DBTechYT
      @DBTechYT  Год назад

      As long as that computer has docker on it

  • @thatguywillt
    @thatguywillt Год назад

    For some reason it's not letting me generate an app key, and it's driving me slightly nuts. I should stick to cars, lol.

    • @HillelCoren
      @HillelCoren 9 месяцев назад

      Are you seeing a specific error? If it's a permissions issue it may help to run the artisan command using sudo.

  • @irtibatkisileri222
    @irtibatkisileri222 Год назад

    11:26 I paused and enter this comment. proxmox backup is mentioned. please make a video about how to tweak and use proxmox backup method too. now back to video.

    • @DBTechYT
      @DBTechYT  Год назад

      I covered the basics here: ruclips.net/video/ksvoWpyWHUY/видео.html

  • @prhawkeye
    @prhawkeye 4 месяца назад

    I was working for 3 hours before coming across this video, then I watched the video and tried to follow it as best I can. After 4 and a half hours, I still have no running application that I can access. Can't get to webpage, can't even get to the application at all. Docker container states it's running, yet I have no idea how to access it, and it doesn't appear to be working. I can't stand Docker, this is my experience every time I try, I've been through trainings, videos, still can't seem to get containers running. The only thing I was able to get working was a Plex container and a Dockge container. Everything else fails, just like this. Would love to try this application out, would love to be able to use this for invoicing, but I can't even get the thing running.

  • @pirateben
    @pirateben Год назад

    this isnt self hosted why

    • @DBTechYT
      @DBTechYT  Год назад +2

      What do you mean this isn't self-hosted?

  • @stevewilson6662
    @stevewilson6662 4 месяца назад

    I don't think InvoiceNinja understands the purpose of docker-compose or how it is supposed to work. Just silly all around.

  • @alejandrofernandezvarela6150
    @alejandrofernandezvarela6150 Год назад +1

    I had to "chmod -R 777 app/" , wouldn't let me only with 755.

    • @DBTechYT
      @DBTechYT  Год назад

      I had a similar thing happen, but I don't like to suggest 777 as it causes people to poop their pants lol. It's why I said that people would have to try some things for themselves to see what works :)

    • @fdeproductions1233
      @fdeproductions1233 Год назад

      Looking over the GitHub page it shows: To ensure folder permissions are correct when the container comes up for the first time it is important that you set the correct folder permissions on the docker folder.
      From the terminal run
      chmod 755 docker/app/public
      sudo chown -R 1500:1500 docker/app
      the second command is what is missing as you do not want to run the app folder/container as root.
      I came across a caching bug advises to run /update?secret=secret to reset the caching issue

  • @aloysiuschan6534
    @aloysiuschan6534 Год назад +1

    I tried many times and kept getting this error from the apps
    In Connector.php line 70:
    SQLSTATE[HY000] [2002] Connection refused
    2022-11-18T00:34:10Z [ERROR] [Entrypoint]: Error connecting to DB
    2022-11-18T00:34:28Z [INFO] [Entrypoint]: Initialising Invoice Ninja...
    INFO Configuration cached successfully.
    INFO Caching the framework bootstrap files.
    config .......................................................... 143ms DONE
    routes .......................................................... 335ms DONE
    In Connection.php line 760:
    SQLSTATE[HY000] [1044] Access denied for user 'ninja'@'%' to database 'ninj
    a' (SQL: select * from information_schema.tables where table_schema = ninja
    and table_name = accounts and table_type = 'BASE TABLE')
    In Connector.php line 70:
    SQLSTATE[HY000] [1044] Access denied for user 'ninja'@'%' to database 'ninj
    a'
    2022-11-18T00:34:40Z [ERROR] [Entrypoint]: Error connecting to DB
    2022-11-18T00:34:56Z [INFO] [Entrypoint]: Initialising Invoice Ninja...
    INFO Configuration cached successfully.

    • @DBTechYT
      @DBTechYT  Год назад

      There's a problem with your user connecting to the database. If you're using a password with a special character in it, you'll want to wrap the password in quotes, though I don't recall immediately if it's a single or doubl quote. So I would try that. Or just try a password with no special characters and see if that gets you going.

    • @aloysiuschan6534
      @aloysiuschan6534 Год назад +1

      @@DBTechYT Aloysius Chan
      No change to the DB password as stated in the env file. I also added the PUID and PGID as recommended but it still doesnt work for me.

    • @djringla
      @djringla Год назад +1

      same issue here, special character passwords are wrapped. No Go