File tree Expand file tree Collapse file tree 4 files changed +29
-4
lines changed Expand file tree Collapse file tree 4 files changed +29
-4
lines changed Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ APP_DEBUG=false
4
4
APP_KEY = SomeRandomString
5
5
6
6
# Database details
7
- DB_HOST = localhost
8
- DB_DATABASE = database_database
9
- DB_USERNAME = database_username
10
- DB_PASSWORD = database_user_password
7
+ DB_HOST = 192.168.99.100
8
+ DB_DATABASE = bookstack
9
+ DB_USERNAME = bookstack
10
+ DB_PASSWORD = admin
11
11
12
12
# Cache and session
13
13
CACHE_DRIVER = file
Original file line number Diff line number Diff line change @@ -6,3 +6,5 @@ RUN cd /var/www/ && git clone https://github.com/ssddanbrown/BookStack.git --bra
6
6
RUN cd /var/www/BookStack && composer install
7
7
COPY .env /var/www/BookStack/.env
8
8
RUN chown -R www-data:www-data /var/www/BookStack
9
+ COPY bookstack.conf /etc/apache2/sites-enabled/bookstack.conf
10
+ RUN a2enmod rewrite
Original file line number Diff line number Diff line change
1
+ <VirtualHost *:80>
2
+ ServerName bookstack.dev
3
+ DocumentRoot "/var/www/BookStack/public/"
4
+
5
+ <Directory "/var/www/BookStack/">
6
+ Options FollowSymLinks MultiViews
7
+ AllowOverride All
8
+ Require all granted
9
+ </Directory>
10
+ </VirtualHost>
Original file line number Diff line number Diff line change 1
1
web :
2
2
build : .
3
+ ports :
4
+ - 8080:80
5
+ links :
6
+ - mysql
7
+ mysql :
8
+ image : mysql
9
+ environment :
10
+ - MYSQL_DATABASE=bookstack
11
+ - MYSQL_ROOT_PASSWORD=root
12
+ - MYSQL_USER=bookstack
13
+ - MYSQL_PASSWORD=admin
14
+ ports :
15
+ - 3306:3306
You can’t perform that action at this time.
0 commit comments