Setting up BookStack

Creating and setting permissions for volume storage

mkdir /mnt/wiki
mkdir /mnt/wiki/storage 
mkdir /mnt/wiki/uploads
mkdir /mnt/wiki/config
chown 33:33 /mnt/wiki
chown 33:33 /mnt/wiki/storage
chown 33:33 /mnt/wiki/uploads
chown 33:33 /mnt/wiki/config
chmod 775 /mnt/wiki
chmod 775 /mnt/wiki/storage
chmod 775 /mnt/wiki/uploads
chmod 775 /mnt/wiki/config
chmod g+s /mnt/wiki
chmod g+s /mnt/wiki/storage
chmod g+s /mnt/wiki/uploads
chmod g+s /mnt/wiki/config

now lets run docker !

docker run \
-e PUID=33 \
-e PGID=33 \
-e DB_HOST=YOUR_SQL_IP:3306 \
-e DB_DATABASE=DATABASE_NAME_HERE \
-e DB_USERNAME=DATABASE_USERNAME_HERE \
-e DB_PASSWORD=DATABASE_PASSWORD_HERE \
-e APP_URL=https://YOUR_WEBSITE_DOMAIN/ \
--mount type=bind,source=/mnt/wiki/config/.env,target=/var/www/bookstack/.env \
-v /mnt/wiki/uploads:/var/www/bookstack/public/uploads \
-v /mnt/wiki/storage:/var/www/bookstack/public/storage \
-p 8080:8080 \
--restart always \
--name="bookstack_wiki" \
 solidnerd/bookstack:latest

After these steps you can visit http://IP-ADDRESS:8080

Login with username ‘admin@admin.com’ and password ‘password’.


Source: https://www.bookstackapp.com/

Docker: https://github.com/solidnerd/docker-bookstack


Here are all of the config variables

      # Environment
      APP_ENV=production
      APP_DEBUG=false
      APP_KEY=SomeRandomStringWith32Characters

      # The below url has to be set if using social auth options
      # or if you are not using BookStack at the root path of your domain.
      APP_URL=https://sesipod.info/

      # Database details
      DB_HOST=YOUR_SQL_IP:3306
      DB_DATABASE=DATABASE_NAME_HERE
      DB_USERNAME=DATABASE_USERNAME_HERE
      DB_PASSWORD=DATABASE_PASSWORD_HERE
   
      # Cache and session
      CACHE_DRIVER=file
      SESSION_DRIVER=file
      # If using Memcached, comment the above and uncomment these
      #CACHE_DRIVER=memcached
      #SESSION_DRIVER=memcached
      QUEUE_DRIVER=sync

      # Memcached settings
      # If using a UNIX socket path for the host, set the port to 0
      # This follows the following format: HOST:PORT:WEIGHT
      # For multiple servers separate with a comma
      MEMCACHED_SERVERS=127.0.0.1:11211:100

      # Storage
      STORAGE_TYPE=local
      # Amazon S3 Config
      STORAGE_S3_KEY=false
      STORAGE_S3_SECRET=false
      STORAGE_S3_REGION=false
      STORAGE_S3_BUCKET=false
      # Storage URL
      # Used to prefix image urls for when using custom domains/cdns
      STORAGE_URL=false

      # General auth
      AUTH_METHOD=standard

      # Social Authentication information. Defaults as off.
      GITHUB_APP_ID=false
      GITHUB_APP_SECRET=false
      GOOGLE_APP_ID=false
      GOOGLE_APP_SECRET=false

      # External services such as Gravatar
      DISABLE_EXTERNAL_SERVICES=false

      # LDAP Settings
      LDAP_SERVER=false
      LDAP_BASE_DN=false
      LDAP_DN=false
      LDAP_PASS=false
      LDAP_USER_FILTER=false
      LDAP_VERSION=false

      # Mail settings
      MAIL_DRIVER=smtp
      MAIL_HOST=localhost
      MAIL_PORT=1025
      MAIL_USERNAME=null
      MAIL_PASSWORD=null
      MAIL_ENCRYPTION=null
      # URL used for social login redirects, NO TRAILING SLASH

Was this helpful?

0 / 0