Skip to content

Commit 6f8ef08

Browse files
committed
Modif
1 parent d279c4b commit 6f8ef08

File tree

4 files changed

+29
-4
lines changed

4 files changed

+29
-4
lines changed

.env

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ APP_DEBUG=false
44
APP_KEY=SomeRandomString
55

66
# 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
1111

1212
# Cache and session
1313
CACHE_DRIVER=file

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ RUN cd /var/www/ && git clone https://github.com/ssddanbrown/BookStack.git --bra
66
RUN cd /var/www/BookStack && composer install
77
COPY .env /var/www/BookStack/.env
88
RUN chown -R www-data:www-data /var/www/BookStack
9+
COPY bookstack.conf /etc/apache2/sites-enabled/bookstack.conf
10+
RUN a2enmod rewrite

bookstack.conf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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>

docker-compose.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
11
web:
22
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

0 commit comments

Comments
 (0)