-
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT] SQLite #5
Comments
Have you tried just setting |
Good shout, I hadn't even considered that......blame the lack of coffee. It looks like there's an issue upstream, and I've raised it in ddworken/hishtory#128 It merely shows |
Thats not a upstream error, thats our doing. https://github.com/linuxserver/docker-hishtory-server/blob/main/root/etc/s6-overlay/s6-rc.d/init-hishtory-config/run#L8 |
I can fix that easily enough |
Can you test with |
Whehei! Looks like we're good! [migrations] started
[migrations] no migrations found
───────────────────────────────────────
██╗ ███████╗██╗ ██████╗
██║ ██╔════╝██║██╔═══██╗
██║ ███████╗██║██║ ██║
██║ ╚════██║██║██║ ██║
███████╗███████║██║╚██████╔╝
╚══════╝╚══════╝╚═╝ ╚═════╝
Brought to you by linuxserver.io
───────────────────────────────────────
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID: 1000
User GID: 999
───────────────────────────────────────
Using SQLite database, ensure you have mounted /squite/hishtory.sqlite into the container
[custom-init] No custom files found, skipping...
Opening DB
Connecting to DB
AutoMigrating DB tables
Pinging DB to confirm liveness
Done initializing DB
Listening on :8080
UnknownIp GET "/healthcheck" 13.904µs 2 B
[ls.io-init] done.
Found a valid version: v0.251 hishtory-server:
#image: lscr.io/linuxserver/hishtory-server:latest
image: ghcr.io/linuxserver/lspipepr-hishtory-server:v0.251-pkg-fb5a6151-dev-7cd680f8c28ab4699e98ac8c8232432366fba732-pr-6
container_name: Hishtory-Server
environment:
- PUID=$PUID
- PGID=$PGID
- TZ=$TZ
- HISHTORY_SQLITE_DB=/squite/hishtory.sqlite
# - HISHTORY_POSTGRES_DB=postgresql://${HISHTORY_DB_USER}:${HISHTORY_DB_PASS}@localhost:5432/hishtory?sslmode=disable
network_mode: "host"
volumes:
- $USERDIR/HishtoryDB:/squite
# ports:
# - 24244:8080
logging:
driver: "local"
options:
max-size: 10m
max-file: "3"
# depends_on:
# - hishtory-db
restart: always |
Cool, I'll get the PR merged in a little bit. |
I have also tested functionality with two clients, and they work as expected. No difference than if using postgres. |
Is this a new feature request?
Wanted change
Enable the use of SQLite within the image instead of having to spin up an extra DB container.
Reason for change
Ease of use, fewer containers.
Proposed code change
From https://github.com/ddworken/hishtory#advanced-features
The text was updated successfully, but these errors were encountered: