📝 docs(README): update Docker Compose quickstart instructions
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:
nocci 2025-12-07 12:22:53 +00:00
parent 61bb65653e
commit 6ee4087dfd
2 changed files with 16 additions and 27 deletions

View file

@ -1,19 +1,17 @@
services:
fleetledger:
build: .
image: ghcr.io/nocci-sl/fleetledger:latest
container_name: fleetledger
ports:
- "8000:8000"
env_file:
- .env
environment:
- DATABASE_PATH=/app/data/fleetledger.db
# SESSION_SECRET must be provided (e.g. via .env) and should be long and random
- SESSION_SECRET=${SESSION_SECRET:?Set SESSION_SECRET in your environment}
# Set to 0 only for local HTTP testing; keep secure (default) in production
- SESSION_COOKIE_SECURE=${SESSION_COOKIE_SECURE:-1}
# Optional: encryption key for management passwords (Fernet key)
- ENCRYPTION_KEY=${ENCRYPTION_KEY:-}
# Allow self-registration after first admin (1 = allow, 0 = only admin-created)
- ALLOW_SELF_REGISTRATION=${ALLOW_SELF_REGISTRATION:-0}
SESSION_SECRET: ${SESSION_SECRET:?Set SESSION_SECRET in .env}
SESSION_COOKIE_SECURE: ${SESSION_COOKIE_SECURE:-1}
ENCRYPTION_KEY: ${ENCRYPTION_KEY:-}
ALLOW_SELF_REGISTRATION: ${ALLOW_SELF_REGISTRATION:-0}
DATABASE_PATH: ${DATABASE_PATH:-/app/data/fleetledger.db}
volumes:
- ./data:/app/data
ports:
- "8000:8000"
restart: unless-stopped