Skip to content

Instantly share code, notes, and snippets.

@halkyon
Last active June 3, 2021 02:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halkyon/e7811f5bee68385d370d7ebea83e8eb8 to your computer and use it in GitHub Desktop.
Save halkyon/e7811f5bee68385d370d7ebea83e8eb8 to your computer and use it in GitHub Desktop.
BeDrive docker installation
  1. Unzip the website.zip file provided by BeDrive somewhere
  2. Replace docker-compose.yml with the following:
version: "3"
services:
  web:
    build: . 
    depends_on:
      - mariadb
    ports:
      - 8080:80
    links:
      - mariadb
  mariadb:
    image: "mariadb:10.5"
    environment:
      MYSQL_ROOT_PASSWORD: root
      MYSQL_DATABASE: demo
      MYSQL_USER: demo
      MYSQL_PASSWORD: demo
  1. Create Dockerfile with following contents:
FROM php:8-apache
RUN a2enmod rewrite
RUN apt-get update \
	&& apt-get install -y libpng-dev libzip-dev \
	&& docker-php-ext-install gd pdo pdo_mysql zip
COPY --chown=www-data:www-data . /var/www/html
RUN chmod -R 755 /var/www/html/
  1. Run these commands:
cp htaccess.example .htaccess
cp public/htaccess.example public/.htaccess
  1. Run docker-compose up and wait for things to build and start
  2. Go to http://localhost:8080 - you should see a setup wizard
  3. Keep hitting Continue until you get to database details. Enter:
Host: mariadb
Name: demo
Username: demo
Password: demo
  1. You should now be asked to create admin credentials, these can be anything
  2. Last step hit Install and BeDrive should be ready for use
  3. Go to http://localhost:8080 to see the frontend, and http://localhost:8080/admin for admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment