📝 docs(README): update Docker Compose quickstart instructions
Some checks are pending
Build and Push Docker Image / build (push) Waiting to run
Some checks are pending
Build and Push Docker Image / build (push) Waiting to run
- use included docker-compose.yml for setup
- streamline update process with docker-compose pull
♻️ refactor(docker-compose): use prebuilt image and env_file
- switch to prebuilt GHCR image in docker-compose.yml
- utilize env_file for environment variables
- reorder ports configuration for clarity
This commit is contained in:
parent
61bb65653e
commit
6ee4087dfd
2 changed files with 16 additions and 27 deletions
21
README.md
21
README.md
|
|
@ -22,27 +22,18 @@ Self-hosted overview for rented servers (VPS, dedicated, storage, managed). Mult
|
|||
- Pull directly with `docker pull ghcr.io/nocci-sl/fleetledger:latest`.
|
||||
|
||||
## Quickstart with Docker Compose (prebuilt image)
|
||||
Use the published GHCR image; no local build needed.
|
||||
Use the included `docker-compose.yml` with the published GHCR image; no local build needed.
|
||||
```bash
|
||||
cp .env-example .env
|
||||
# set SESSION_SECRET in .env to a strong random value
|
||||
|
||||
cat > docker-compose.override.yml <<'EOF'
|
||||
services:
|
||||
fleetledger:
|
||||
image: ghcr.io/nocci-sl/fleetledger:latest
|
||||
environment:
|
||||
SESSION_SECRET: ${SESSION_SECRET:?set in .env}
|
||||
SESSION_COOKIE_SECURE: ${SESSION_COOKIE_SECURE:-1}
|
||||
ENCRYPTION_KEY: ${ENCRYPTION_KEY:-}
|
||||
ALLOW_SELF_REGISTRATION: ${ALLOW_SELF_REGISTRATION:-0}
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
EOF
|
||||
|
||||
docker-compose up -d
|
||||
```
|
||||
SQLite will live on the host in `./data/fleetledger.db`.
|
||||
To update, pull the latest image and recreate:
|
||||
```bash
|
||||
docker-compose pull
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
## Quickstart with Docker (build locally)
|
||||
```bash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue