File tree 5 files changed +109
-0
lines changed
5 files changed +109
-0
lines changed Original file line number Diff line number Diff line change
1
+ APP_NAME = Blog
2
+ APP_ENV = local
3
+ APP_KEY = base64:TmCL7ztzsi/2Ubg+Q0Rd1MtVQyO/cPXus5taikw9rVw=
4
+ APP_DEBUG = true
5
+ APP_URL = http://localhost
6
+
7
+ LOG_CHANNEL = stack
8
+
9
+ DB_CONNECTION = mysql
10
+ DB_HOST = 127.0.0.1
11
+ DB_PORT = 3306
12
+ DB_DATABASE = homestead
13
+ DB_USERNAME = homestead
14
+ DB_PASSWORD = secret
15
+
16
+ BROADCAST_DRIVER = log
17
+ CACHE_DRIVER = file
18
+ SESSION_DRIVER = file
19
+ SESSION_LIFETIME = 120
20
+ QUEUE_DRIVER = sync
21
+
22
+ REDIS_HOST = 127.0.0.1
23
+ REDIS_PASSWORD = null
24
+ REDIS_PORT = 6379
25
+
26
+ MAIL_DRIVER = smtp
27
+ MAIL_HOST = smtp.mailtrap.io
28
+ MAIL_PORT = 2525
29
+ MAIL_USERNAME = null
30
+ MAIL_PASSWORD = null
31
+ MAIL_ENCRYPTION = null
32
+
33
+ PUSHER_APP_ID =
34
+ PUSHER_APP_KEY =
35
+ PUSHER_APP_SECRET =
36
+ PUSHER_APP_CLUSTER = mt1
37
+
38
+ MIX_PUSHER_APP_KEY = " ${ PUSHER_APP_KEY } "
39
+ MIX_PUSHER_APP_CLUSTER = " ${ PUSHER_APP_CLUSTER } "
Original file line number Diff line number Diff line change
1
+ :80
2
+ root /app/public
3
+ log stdout
4
+ errors stderr
5
+ gzip
6
+ fastcgi / php:9000 php
7
+ rewrite {
8
+ to {path} {path} / /index.php
9
+ }
Original file line number Diff line number Diff line change
1
+ FROM php:7.1-fpm-alpine
2
+
3
+ # Get building dependencies for php extensions
4
+ RUN apk add --no-cache --virtual .run-deps \
5
+ git \
6
+ zlib \
7
+ libmcrypt \
8
+ libxml2 \
9
+ && apk add --no-cache --virtual .build-deps \
10
+ # nproc
11
+ coreutils \
12
+ # zlib ext-zip
13
+ zlib-dev \
14
+ libmcrypt-dev \
15
+ libxml2-dev
16
+
17
+ # Get php extensions
18
+ RUN docker-php-source extract \
19
+ && git clone https://github.com/tideways/php-profiler-extension.git --depth=1 /usr/src/php/ext/tideways \
20
+ && docker-php-ext-install -j$(nproc) \
21
+ zip \
22
+ mcrypt \
23
+ mysqli \
24
+ pdo_mysql \
25
+ soap \
26
+ mbstring \
27
+ opcache \
28
+ tideways \
29
+ && docker-php-source delete \
30
+ && apk del .build-deps
31
+
32
+ # Get composer into /usr/local/bin/composer
33
+ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
34
+ # Setup a github token for composer, because github API rate limit
35
+ # Token is generatered from https://github.com/settings/tokens
36
+ RUN composer config -g github-oauth.github.com e84b43eac402c04f0a42fbd5d5ab8953399e4d8f
Original file line number Diff line number Diff line change
1
+ web :
2
+ ports :
3
+ - " 8009:80"
Original file line number Diff line number Diff line change
1
+ # data:
2
+ # build: Dockerfiles/data
3
+
4
+ web :
5
+ image : abiosoft/caddy
6
+ volumes :
7
+ - .:/app
8
+ - ./Caddyfile:/etc/Caddyfile:ro
9
+ links :
10
+ - php
11
+
12
+ php :
13
+ build : .
14
+ volumes :
15
+ - .:/app
16
+ # Customize php.ini
17
+ - ./php.ini:/usr/local/etc/php/php.ini:ro
18
+ # Use host machine composer caching to speed up composer
19
+ - ~/.composer:/root/.composer
20
+ # Load psysh history from local
21
+ - ~/.config/psysh/psysh_history:/root/.config/psysh/psysh_history
22
+ working_dir : /app
You can’t perform that action at this time.
0 commit comments