Compare commits
2 Commits
af8d1c58fa
...
8de6b187a0
Author | SHA1 | Date |
---|---|---|
blu | 8de6b187a0 | |
basebuilder | 65ad4909ee |
|
@ -15,7 +15,7 @@
|
|||
|
||||
## Usage
|
||||
|
||||
### Basic initial setup
|
||||
### Server setup
|
||||
1. Set up your server ([tutorial](https://docs.coopcloud.tech/operators/tutorial/#server-setup))
|
||||
1. Install `abra` locally ([guide here](https://docs.coopcloud.tech/operators/tutorial/#install-abra))
|
||||
1. Deploy [`coop-cloud/traefik`](https://git.autonomic.zone/coop-cloud/traefik) on the server. It acts as proxy, and it handles automagically TLS certificate creation and update (via `Let's Encrypt`).
|
||||
|
@ -27,3 +27,10 @@
|
|||
your server
|
||||
- `APP_URL` as well needs to be set
|
||||
1. `abra app deploy open-inventory.example.net`
|
||||
|
||||
### open-inventory initial setup
|
||||
|
||||
1. Run
|
||||
|
||||
```abra app cmd open-inventory.example.net app initial_setup```
|
||||
it will run the initial migrations, and create the first admin user
|
||||
|
|
|
@ -4,6 +4,7 @@ services:
|
|||
app:
|
||||
# Dockerfile here:
|
||||
image: codeberg.org/eotl/open-inventory:0.0.8
|
||||
entrypoint: ./entrypoint.sh
|
||||
depends_on:
|
||||
- db
|
||||
networks:
|
||||
|
@ -40,8 +41,11 @@ services:
|
|||
environment:
|
||||
- MYSQL_DATABASE=open-inventory
|
||||
- MYSQL_USER=open-inventory
|
||||
- MYSQL_PASSWORD=open-inventory-db-password
|
||||
- MYSQL_ROOT_PASSWORD="open-inventory-db-root-password"
|
||||
- MYSQL_PASSWORD_FILE=/run/secrets/db_password
|
||||
- MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db_root_password
|
||||
secrets:
|
||||
- db_password
|
||||
- db_root_password
|
||||
deploy:
|
||||
labels: [ 'coop-cloud.${STACK_NAME}.db.version=10.5-31e52f4d87a' ]
|
||||
networks:
|
||||
|
|
|
@ -6,3 +6,7 @@ export DB_PASSWORD=$(cat /run/secrets/db_password)
|
|||
# DB container
|
||||
export MYSQL_PASSWORD=$(cat /run/secrets/db_password)
|
||||
export MYSQL_ROOT_PASSWORD=$(cat /run/secrets/db_root_password)
|
||||
|
||||
# Upstream ENTRYPOINT
|
||||
# https://codeberg.org/eotl/open-inventory/src/branch/main/docker/prod/Dockerfile
|
||||
/app/docker/entrypoint.sh
|
||||
|
|
Loading…
Reference in New Issue