-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from inventree/readme
Add README.md
- Loading branch information
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
## inventree-caddy | ||
|
||
This repository contains the source code for the `inventree-caddy` Docker image. | ||
|
||
The `inventree-caddy` image is based on the [Caddy docker image](https://hub.docker.com/_/caddy), and comes pre-loaded with a configuration file which works "out of the box" with InvenTree. | ||
|
||
### InvenTree Setup | ||
|
||
To setup InvenTree in docker, refer to our [Docker installation guide](https://docs.inventree.org/en/stable/start/docker_install/). | ||
|
||
### Customization | ||
|
||
If you wish to change or customize the Caddy configuration, you can mount a custom Caddyfile into the container at `/etc/caddy/Caddyfile`. | ||
|
||
Refer to the `Caddyfile` in this repository for a starting point. | ||
|
||
### Environment Variables | ||
|
||
The following environment variables can be set to customize the behavior of the image (beyond the default Caddy configuration): | ||
|
||
| Variable | Description | Default | | ||
| -------- | ----------- | ------- | | ||
| `INVENTREE_SITE_URL` | The *external* URL at which InvenTree is hosted | `inventree.localhost` | | ||
| `INVENTREE_SERVER` | The *internal* URL at which the InvenTree server is hosted (this should point to another docker container) | `http://inventree-server:8000` | | ||
|
||
*Note: These environment variables are specified already using the default docker compose file, as part of the regular InvenTree setup.* |