Skip to content

Commit 0bbd1d3

Browse files
committed
First commit
0 parents  commit 0bbd1d3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+5668
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
.idea/*
3+
.idea/vcs.xml
4+
.idea/workspace.xml

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
docker-start:
2+
docker-compose -f docker/docker-compose.yml up --build -d --remove-orphans --force-recreate
3+
docker-stop:
4+
docker-compose -f docker/docker-compose.yml stop

docker/docker-compose.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
nginx:
2+
build: nginx
3+
command: nginx -g "daemon off;"
4+
links:
5+
- php
6+
ports:
7+
- "8181:80"
8+
php:
9+
build: php
10+
volumes:
11+
- ../lumen:/var/www
12+
working_dir: /var/www/public
13+
command: php-fpm
14+
links:
15+
- db
16+
ports:
17+
- "9000:9000"
18+
environment:
19+
APP_ENV: local
20+
APP_DEBUG: 'true'
21+
APP_KEY: SomeRandomKey!!!
22+
APP_LOCALE: en
23+
APP_FALLBACK_LOCALE: en
24+
DB_CONNECTION: mysql
25+
DB_HOST: db
26+
DB_DATABASE: lumen
27+
DB_USERNAME: lumen
28+
DB_PASSWORD: secret
29+
MEMCACHED_HOST: cache
30+
CACHE_DRIVER: memcached
31+
db:
32+
image: mysql
33+
ports:
34+
- "3306:3306"
35+
environment:
36+
MYSQL_ROOT_PASSWORD: secret
37+
MYSQL_DATABASE: lumen
38+
MYSQL_USER: lumen
39+
MYSQL_PASSWORD: secret

docker/nginx/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
FROM nginx
2+
ADD nginx.conf /etc/nginx/conf.d/default.conf

docker/nginx/nginx.conf

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
server {
2+
listen 80;
3+
root /var/www/public;
4+
index index.php index.htm index.html;
5+
6+
location / {
7+
try_files $uri $uri/ /index.php?$query_string;
8+
}
9+
10+
location /index.php {
11+
include fastcgi_params;
12+
fastcgi_connect_timeout 10s;
13+
fastcgi_read_timeout 10s;
14+
fastcgi_buffers 256 4k;
15+
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
16+
fastcgi_pass php:9000;
17+
}
18+
}

docker/php/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM php:7.3-fpm-alpine
2+
# lumen/laravel packages
3+
RUN docker-php-ext-install mbstring tokenizer mysqli pdo_mysql

lumen/.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.yml]
15+
indent_size = 2

lumen/.env.example

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
APP_NAME=Lumen
2+
APP_ENV=local
3+
APP_KEY=
4+
APP_DEBUG=true
5+
APP_URL=http://localhost
6+
APP_TIMEZONE=UTC
7+
8+
LOG_CHANNEL=stack
9+
LOG_SLACK_WEBHOOK_URL=
10+
11+
DB_CONNECTION=mysql
12+
DB_HOST=127.0.0.1
13+
DB_PORT=3306
14+
DB_DATABASE=homestead
15+
DB_USERNAME=homestead
16+
DB_PASSWORD=secret
17+
18+
CACHE_DRIVER=file
19+
QUEUE_CONNECTION=sync

lumen/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/vendor
2+
/.idea
3+
Homestead.json
4+
Homestead.yaml
5+
.env

lumen/.styleci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
php:
2+
preset: laravel
3+
enabled:
4+
- alpha_ordered_imports
5+
disabled:
6+
- length_ordered_imports
7+
- unused_use
8+
js: true
9+
css: true

0 commit comments

Comments
 (0)