BookStackApp / BookStack

A platform to create documentation/wiki content built with PHP & Laravel
https://www.bookstackapp.com/
MIT License
15.45k stars 1.94k forks source link

Trying to deploy bookstack #5283

Closed PJTharpeNoob closed 2 weeks ago

PJTharpeNoob commented 1 month ago

Attempted Debugging

Searched GitHub Issues

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

ssddanbrown commented 1 month ago

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:

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

PJTharpeNoob commented 1 month ago

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

ssddanbrown commented 1 month ago

@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 2 weeks ago

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