BookStackApp / BookStack

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

Trying to deploy bookstack #5283

Open PJTharpeNoob opened 5 hours ago

PJTharpeNoob commented 5 hours 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 4 hours 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 2 hours 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