- Unzip the website.zip file provided by BeDrive somewhere
- 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
- 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/
- Run these commands:
cp htaccess.example .htaccess
cp public/htaccess.example public/.htaccess
- Run
docker-compose up
and wait for things to build and start
- Go to http://localhost:8080 - you should see a setup wizard
- Keep hitting Continue until you get to database details. Enter:
Host: mariadb
Name: demo
Username: demo
Password: demo
- You should now be asked to create admin credentials, these can be anything
- Last step hit Install and BeDrive should be ready for use
- Go to http://localhost:8080 to see the frontend, and http://localhost:8080/admin for admin