Coder Social home page Coder Social logo

Comments (9)

thelamer avatar thelamer commented on July 30, 2024

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.

rveachkc avatar rveachkc commented on July 30, 2024

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.

thelamer avatar thelamer commented on July 30, 2024

We still need to update from that config file though created #22 .

from docker-bookstack.

homerr avatar homerr commented on July 30, 2024

Hi @rveachkc did you create the container with DB_USER set in the environment?

from docker-bookstack.

rveachkc avatar rveachkc commented on July 30, 2024

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.

homerr avatar homerr commented on July 30, 2024

@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.

rveachkc avatar rveachkc commented on July 30, 2024

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.

homerr avatar homerr commented on July 30, 2024

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.

thelamer avatar thelamer commented on July 30, 2024

This is resolved in the latest image please pull and redeploy or simply update.

from docker-bookstack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.