mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2026-01-17 11:54:04 +01:00
Updated Docker Compose with Caddy (markdown)
@@ -13,23 +13,39 @@ The following guides aims at a completly fresh install of Invoice Ninja with the
|
||||
|
||||
Additionally you need to have proper [TLD (Top Level Domain)](https://en.wikipedia.org/wiki/Top-level_domain) on a server that is publicly reachable (with a public IP). This is necessary for Caddy to correctly obtain the TLS certificate.
|
||||
|
||||
Also check the [Caddy automatic https requirements](https://caddyserver.com/docs/automatic-https).
|
||||
|
||||
⚠️ If you are missing either one of these additional prerequisites, then this setup does not work for you. Please check the [setup with nginx](https://github.com/invoiceninja/dockerfiles/wiki/docker-composee-with-nginx) instead.
|
||||
|
||||
## Guide for Invoice Ninja 4
|
||||
|
||||
## Guide for Invoice Ninja 5
|
||||
|
||||
**Create a new folder**
|
||||
### 📁 Create a new folder
|
||||
|
||||
First we need an empty folder where our docker files for IN 5 will reside.
|
||||
|
||||
_Command_: `mkdir ~/invoiceninja5; cd ~/invoiceninja5`
|
||||
|
||||
**Clone this repository**
|
||||
### 💻 Clone this repository
|
||||
|
||||
Now we need to clone this repository to get all the files necessary to corretctly configure and run IN 5 with Docker Compose.
|
||||
|
||||
_Command_: `git clone https://github.com/invoiceninja/dockerfiles.git .`
|
||||
|
||||
**Configure your installation**
|
||||
### 🔨 Configure your installation
|
||||
|
||||
To get the complete overview what things can be configured please check the [`docker-compose.yml`](https://github.com/invoiceninja/dockerfiles/blob/master/docker-compose.yml). Each section and value that can or should be configured is commented.
|
||||
|
||||
Things you definately should check and change:
|
||||
|
||||
* `APP_URL`: Environmet variable where to reach your installation. This should be your valid TLD domain.
|
||||
* Ports: Ports are configured for `80` and `443`. Make sure they are open and not blocked by some other service.
|
||||
|
||||
### 🚀 Run your installation
|
||||
|
||||
After you finished the afore mentioned steps you can now run your installation.
|
||||
|
||||
_Command_: `docker-compose up -d`
|
||||
|
||||
This will run Invoice Ninja 5 with the configuration made. You should now be able to reach your installation at the `APP_URL` configured.
|
||||
Reference in New Issue
Block a user