Trying to deploy bookstack #5019

Closed
opened 2026-02-05 09:34:09 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @PJTharpeNoob on GitHub (Oct 24, 2024).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

Hello! New to bookstack and Linux as a whole I guess, but have been in IT for 20 years.
I am trying to deploy bookstack via docker.
I am using Ubuntu 22.04 with aaPanel with Nginx 1.24, MySQL 8.0.35, PHPMyadmin 5.2 and PHP 8.0

Here is my docker-compose.yml file:

---
services:
  bookstack:
    image: lscr.io/linuxserver/bookstack:latest
    container_name: bookstack
    environment:
      - PUID=1001
      - PGID=1001
      - TZ=Etc/UTC
      - APP_URL=http://localhost:6875
      - APP_KEY=2zdwi8n9D/8ytUmWhBae6GO6X9GtqRAXwFw9XxQJicM=
      - DB_HOST=bookstack_db
      - DB_PORT=3306
      - DB_USERNAME=bookstack
      - DB_PASSWORD=password
      - DB_DATABASE=bookstackapp
    volumes:
      - /var/docker-data/bookstack_app_data:/config
    ports:
      - 6875:80
    restart: unless-stopped
    depends_on:
      - bookstack_db

  bookstack_db:
    image: lscr.io/linuxserver/mariadb:latest
    container_name: bookstack_db
    environment:
      - PUID=1001
      - PGID=1001
      - TZ=Etc/UTC
      - MYSQL_ROOT_PASSWORD=password
      - MYSQL_DATABASE=bookstackapp
      - MYSQL_USER=bookstack
      - MYSQL_PASSWORD=password
    volumes:
      - /var/docker-data/bookstack_db_data:/config
    restart: unless-stopped

When I run the composer, it gets to this and stops:

image

Any help would be appreciated. I have been scouring the internet for the last 2 days and cant figure this out :(

Thank you!

Exact BookStack Version

10.11.8

Log Content

No response

Hosting Environment

I am using Ubuntu 22.04 with aaPanel with Nginx 1.24, MySQL 8.0.35, PHPMyadmin 5.2 and PHP 8.0

Originally created by @PJTharpeNoob on GitHub (Oct 24, 2024). ### Attempted Debugging - [X] I have read the debugging page ### Searched GitHub Issues - [X] I have searched GitHub for the issue. ### Describe the Scenario Hello! New to bookstack and Linux as a whole I guess, but have been in IT for 20 years. I am trying to deploy bookstack via docker. I am using Ubuntu 22.04 with aaPanel with Nginx 1.24, MySQL 8.0.35, PHPMyadmin 5.2 and PHP 8.0 Here is my docker-compose.yml file: ```yml --- services: bookstack: image: lscr.io/linuxserver/bookstack:latest container_name: bookstack environment: - PUID=1001 - PGID=1001 - TZ=Etc/UTC - APP_URL=http://localhost:6875 - APP_KEY=2zdwi8n9D/8ytUmWhBae6GO6X9GtqRAXwFw9XxQJicM= - DB_HOST=bookstack_db - DB_PORT=3306 - DB_USERNAME=bookstack - DB_PASSWORD=password - DB_DATABASE=bookstackapp volumes: - /var/docker-data/bookstack_app_data:/config ports: - 6875:80 restart: unless-stopped depends_on: - bookstack_db bookstack_db: image: lscr.io/linuxserver/mariadb:latest container_name: bookstack_db environment: - PUID=1001 - PGID=1001 - TZ=Etc/UTC - MYSQL_ROOT_PASSWORD=password - MYSQL_DATABASE=bookstackapp - MYSQL_USER=bookstack - MYSQL_PASSWORD=password volumes: - /var/docker-data/bookstack_db_data:/config restart: unless-stopped ``` When I run the composer, it gets to this and stops: <img width="775" alt="image" src="https://github.com/user-attachments/assets/0b0c1c2a-1d60-4054-8176-72ffe1f8e177"> Any help would be appreciated. I have been scouring the internet for the last 2 days and cant figure this out :( Thank you! ### Exact BookStack Version 10.11.8 ### Log Content _No response_ ### Hosting Environment I am using Ubuntu 22.04 with aaPanel with Nginx 1.24, MySQL 8.0.35, PHPMyadmin 5.2 and PHP 8.0
OVERLORD added the 🐕 Support label 2026-02-05 09:34:09 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Oct 24, 2024):

Hi @PJTharpeNoob,
Going by those compose logs in the terminal view, that's a successful start-up.
Based on that config, it should be available at port 6875 of the host/ip address.

A few things though:

  • Firewalls on the server and/or host environment may block access to this.
  • I'm assuming this is not hosted on the same machine you'd be accessing via in the browser, so the APP_URL=http://localhost:6875 is probably not right (Should be the address you expect to access via).
  • Quite often for a docker-based setup you'd have a reverse proxy in front to handle https/http on normal ports which then handles the requests and sends them on to the container.

It's a little old, but I have a detailed guide on setting up a compose stack with a proxy which may help you gain a view of how these parts fit together: https://www.youtube.com/watch?v=dbDzPIv8Cf8

@ssddanbrown commented on GitHub (Oct 24, 2024): Hi @PJTharpeNoob, Going by those compose logs in the terminal view, that's a successful start-up. Based on that config, it should be available at port `6875` of the host/ip address. A few things though: - Firewalls on the server and/or host environment may block access to this. - I'm assuming this is not hosted on the same machine you'd be accessing via in the browser, so the `APP_URL=http://localhost:6875` is probably not right (Should be the address you expect to access via). - Quite often for a docker-based setup you'd have a reverse proxy in front to handle https/http on normal ports which then handles the requests and sends them on to the container. It's a little old, but I have a detailed guide on setting up a compose stack with a proxy which may help you gain a view of how these parts fit together: https://www.youtube.com/watch?v=dbDzPIv8Cf8
Author
Owner

@PJTharpeNoob commented on GitHub (Oct 24, 2024):

Thank you for the quick reply!

I changed the APP URL to my VPS IP address. It did deploy but I got this:

image

Working on going through your video now.

PJ

@PJTharpeNoob commented on GitHub (Oct 24, 2024): Thank you for the quick reply! I changed the APP URL to my VPS IP address. It did deploy but I got this: <img width="1258" alt="image" src="https://github.com/user-attachments/assets/40f868de-8346-4114-a8b0-6dc3a0f6b566"> Working on going through your video now. PJ
Author
Owner

@ssddanbrown commented on GitHub (Oct 24, 2024):

@PJTharpeNoob Errors like that should be logged to the app laravel.log file.
For this kind of setup I talk about accessing logs at about 7:28 of my video here: https://youtu.be/6A8hLuQTkKQ?t=448
That said, it's possible the log file might have moved a bit since that video, but should still be somewhere within the mounted app files.

@ssddanbrown commented on GitHub (Oct 24, 2024): @PJTharpeNoob Errors like that should be logged to the app `laravel.log` file. For this kind of setup I talk about accessing logs at about 7:28 of my video here: https://youtu.be/6A8hLuQTkKQ?t=448 That said, it's possible the log file might have moved a bit since that video, but should still be somewhere within the mounted app files.
Author
Owner

@ssddanbrown commented on GitHub (Nov 7, 2024):

Since there's been no further follow up I'll go ahead and close this off.

@ssddanbrown commented on GitHub (Nov 7, 2024): Since there's been no further follow up I'll go ahead and close this off.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5019