Skip to content
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

Ubunut Docker installation - Need help by link #4942

Open
2 tasks done
Gumblfreak-R opened this issue Apr 10, 2024 · 5 comments
Open
2 tasks done

Ubunut Docker installation - Need help by link #4942

Gumblfreak-R opened this issue Apr 10, 2024 · 5 comments

Comments

@Gumblfreak-R
Copy link

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

I have installed Bookstack under ubuntu and docker compose. I have configured everything so far. When I now call up the website, I always land on this example website: https://bookstack.example.com/login. Apache2 does not give any errors. I have adapted 000-default.conf with the path of my installation. In the docker-compose.yml I have specified the app url, tried once with https:/xxx.xx and once with the IP: 192.... Unfortunately both without success I always end up on the example page of Bookstack when I call up the homepage, does anyone have an idea? I have rented an Ubuntu server and have installed the latest Ubunut version and run Plesk on it.

Exact BookStack Version

newest from homepage

Log Content

image
image

Hosting Environment

Ubuntu 22.04 mit Plesk 18 Obsidian
PHP 8.2.17

@ssddanbrown
Copy link
Member

Hi @Gumblfreak-R,

  • Please ensure the APP_URL is set exactly to the base URL you'd expect to access BookStack on.
    • Ensure you're re-creating the containers (compose down & up) rather than just restarting after changing this.
  • I don't understand how Apache is used with the shown docker setup here, they don't look connected at all. The apache looks set-up for a sub-path setup leading to a on-instance install, whereas you've got a docker-based install for which I'd expect to see a proxy-based setup.
    • Can you explain the expected URL format, and all the parts you have in play?
      • Do you intend to use a sub-path?
      • Is apache currently leading requests to the docker setup somehow? If so, how?
      • Are you using a port number in the URL when accessing it? If so, do you intend to?

@Gumblfreak-R
Copy link
Author

I have an Ubuntu server incl. Plesk installation. I have installed Docker and Bookstack as follows:
curl -fsSL https://get.docker.com | sudo sh
First create the .yml file in your desired installation path
as an example the path would be /docker/bookstack
then open the compose file here with vi:
vi docker-compose.yml

Copy the content below and adapt it to your bookstack environment. Be sure to replace the example passwords!

services:
bookstack:
image: lscr.io/linuxserver/bookstack
container_name: bookstack
environment:
- PUID=1000
- PGID=1000
- APP_URL=https://bookstack.example.com
- DB_HOST=bookstack_db
- DB_PORT=3306
- DB_USER=bookstack
- DB_PASS=
- DB_DATABASE=bookstackapp
volumes:
- ./bookstack_app_data:/config
ports:
- 6875:80
restart: unless-stopped
depends_on:
- bookstack_db
bookstack_db:
image: lscr.io/linuxserver/mariadb
container_name: bookstack_db
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=
- TZ=Europe/Berlin
- MYSQL_DATABASE=bookstackapp
- MYSQL_USER=bookstack
- MYSQL_PASSWORD=
volumes:
- ./bookstack_db_data:/config
restart: unless-stopped
Now exit the editor with :wq!
Then start your Bookstack Docker environment with
docker compose up -d
You can use docker ps to check whether your Docker environment is running.
Your URL is then https://bookstack.example.com:6875 or https://192.168.178.XX:6875

@Gumblfreak-R
Copy link
Author

Gumblfreak-R commented Apr 10, 2024

i changed the url at the composer.yml with my url. but i always land on the example page...
by apache2 configs i have entered this one:
<VirtualHost *:80>

...

# BookStack Configuration
Alias "/bookstack" "/var/www/bookstack/public"

<Directory "/var/www/bookstack/public">
  Options FollowSymlinks
  AllowOverride None
  Require all granted

  RewriteEngine On
  # Redirect Trailing Slashes If Not A Folder...
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)/$ /$1 [L,R=301]

  # Handle Front Controller...
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^ index.php [L]
</Directory>


<Directory "/var/www/bookstack">
  AllowOverride None
  Require all denied
</Directory>
# End BookStack Configuration

...

here i have updated my path and then saved

@ssddanbrown
Copy link
Member

@Gumblfreak-R That apache setup appears in no way linked to the docker setup? Do you expect it to be?
Do you have a domain name you're using to access BookStack? Or an IP address?

@Gumblfreak-R
Copy link
Author

i have a domain name. but i also tried it with the ip adress

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants