Comments (9)
Edit: sorry I spoke too soon. The problem is it is wrapped in the logic for setting the database endpoint for the application.
Though I cannot think of many situations where you would not want to set those using the docker env, it should not be restricted from generating that key.
I will create a PR shortly.
from docker-bookstack.
The APP_URL
looks to be a documentation issue that should be fixed with this pull request: #19
...and honestly, I built the image off master, tried to reproduce the issue, and it's working every time now.
It's possible that I had a bunk config from when I was trying to work through the APP_URL
stuff.
As far as de-coupling from the db config env vars, that might be nice, but not mandatory.
from docker-bookstack.
We still need to update from that config file though created #22 .
from docker-bookstack.
Hi @rveachkc did you create the container with DB_USER
set in the environment?
from docker-bookstack.
It's been a while, so I'm a bit fuzzy on the order in which I tried everything, but this was the last container definition I tried before I started configuring the .env file. Honestly, once I got that up and running, I didn't touch it.
Partial definition in ansible yaml:
- name: Bookstack Container
docker_container:
name: bookstack
image: linuxserver/bookstack
env:
PUID: "{{ bookstack_user_task.uid }}"
PGID: "{{ bookstack_user_task.group }}"
DB_HOST: "{{ mysql_container_name }}"
DB_DATABASE: "{{ bookstack_mysql_db }}"
DB_USERNAME: "{{ bookstack_mysql_user }}"
DB_PASSWORD: "{{ bookstack_mysql_pw }}"
APP_URL: "https://{{ bookstack_host }}"
APP_KEY: "{{ bookstack_app_key }}"
APP_DEBUG: true
from docker-bookstack.
@rveachkc yeah that'd be it if that was the one, the DB_USER
variable is used to determine whether it runs through and configures the .env from the environment settings. If it is not set, the container doesn't do anything and leaves the user to configure the .env manually.
Is it all working ok now?
from docker-bookstack.
So sorry for the delay, I suck.
My container took an update a while ago, and my custom .env
file config broke.
When I flipped it to using environment variables, it works great!!
I am still setting the APP_KEY with an env variable though.
from docker-bookstack.
If you took the env variable out and made sure it matches in the bookstack_key.txt does it then work ok?
from docker-bookstack.
This is resolved in the latest image please pull and redeploy or simply update.
from docker-bookstack.
Related Issues (20)
- [FEAT] Add ability to configure queue worker process to support async action handling HOT 4
- [BUG] nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol) HOT 12
- [BUG] Environment variables not being passed to /config/www/.env HOT 12
- [BUG] production.ERROR: Error when attempting image upload:Unable to create a directory at /app/www/public/uploads/images /user/2023-10 HOT 2
- [BUG] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'bookstack.users' doesn't exist in /app/www/vendor/laravel/framework/src/Illuminate/Database/Connection.php:414 HOT 4
- [BUG] An Error Occurred An unknown error occurred HOT 15
- [BUG] Error at container setup while chown-ing laravel.log HOT 10
- [BUG] <DB User Acces denied>
- Nginx can not support IPV6? HOT 6
- SQLSTATE Error during migration HOT 4
- [FEAT] Add Version Tags to docker images HOT 6
- Cannot login with the default user and password - Issue also to create a new admin user inside of the Docker HOT 4
- SQLSTATE during migration HOT 3
- [BUG] Error uploading big images HOT 6
- [BUG] SQL error attempting to create table "migration" HOT 2
- [BUG] uploaded images can not be found after move to container HOT 3
- [BUG] NGINX inside the image is badly configured. HOT 6
- 500 Internal Server Error HOT 12
- QNAP QTS Container Station deployment HOT 4
- [BUG] EXIF functionality of bookstack not working, due to missing package HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-bookstack.