Skip to content

Commit 185a513

Browse files
committed
Cleaned up redundant files.
1 parent 82f2d9c commit 185a513

File tree

6 files changed

+8
-101
lines changed

6 files changed

+8
-101
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.DS_Store
12
.idea
23
.cache
34
.config

.provision/nginx/conf.d/vhost.prod.conf renamed to .provision/nginx/conf.d/vhost.conf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
server {
2-
32
client_max_body_size 5m;
43

54
listen 80;
@@ -8,7 +7,6 @@ server {
87

98
location / {
109
try_files $uri $uri/ /index.php?$query_string;
11-
1210
#auth_basic "Restricted Content";
1311
#auth_basic_user_file /etc/nginx/.htpasswd;
1412
}
@@ -21,4 +19,4 @@ server {
2119
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
2220
fastcgi_param PATH_INFO $fastcgi_path_info;
2321
}
24-
}
22+
}

.provision/nginx/conf.d/vhost.local.conf

Lines changed: 0 additions & 20 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1+
# Laravel docker environment
12
### Introduction
23
Docker environment configuration for Laravel development.
34
Contains settings for local development for new project or already existing.
45
>Repository provides:
5-
- Laravel ^8.0
6+
- Laravel ^6.0 || ^7.0 || ^8.0
67
- PHP 7.4
78
- Nginx: stable
89
- MySql 8.0
910
- Xdebug 2.9.8
1011
- Redis
1112
- Node: latest
12-
- LetsEncrypt for production
1313

1414
### Installation
1515
**Note:** Local environment tested on Ubuntu and macOS. Feel free to create an Issue for other OS.
@@ -30,7 +30,7 @@ Contains settings for local development for new project or already existing.
3030
3. **Configure main `docker-compose.yml` file**
3131
````
3232
# Local development
33-
cp docker-compose.yml.local docker-compose.yml
33+
cp docker-compose.yml.example docker-compose.yml
3434
````
3535
Set variables for mysql container. Docker will create database and user at first UP.
3636
````
@@ -75,24 +75,4 @@ Contains settings for local development for new project or already existing.
7575

7676
docker-compose exec -uwww-data php-fpm composer install
7777
````
78-
6. **Launch http://localhost:8989/register**
79-
80-
### Production and LetsEncrypt
81-
Repository do not show full flow how to deploy docker application with build and docker registry,
82-
it can be used with simple git pull from your repository.
83-
For production without https you can use `develop` branch and production files.
84-
````
85-
# Production
86-
cp docker-compose.yml.prod docker-compose.yml #this compose file use nginx production config
87-
````
88-
If you are going to use LetsEncrypt at production look at branch 'letsencrypt' this repository.
89-
Branch contains ready to use configuration for letsEncrypt in production based on great article [Nginx and Let’s Encrypt with Docker in Less Than 5 Minutes](https://medium.com/@pentacent/nginx-and-lets-encrypt-with-docker-in-less-than-5-minutes-b4b8a60d3a71).
90-
91-
To use letsEncrypt at production just follow steps below:
92-
1. Initial settings
93-
Open ``./init-letsencrypt.sh`` add your domains instead `{YOUR_DOMAIN}` www.`{YOUR_DOMAIN}` and set `{YOUR_EMAIL}`.
94-
Run ``./init-letsencrypt.sh``. It will create initial settings.
95-
Note: don't forget to add A DNS record for domain with www.
96-
2. Nginx settings
97-
At `.provision/nginx/conf.d/vhost.prod.conf` set `{YOUR_DOMAIN}` variable.
98-
Certificates stored at .provision folder and will be renew as described in article.
78+
6. **Launch http://localhost:8989/register**

docker-compose.yml.prod renamed to docker-compose.yml.example

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ services:
66
build: .provision/nginx
77
volumes:
88
- ./${PROJECT_FOLDER}:/var/www
9-
- .provision/nginx/conf.d/vhost.prod.conf:/etc/nginx/conf.d/default.conf
9+
- .provision/nginx/conf.d/vhost.conf:/etc/nginx/conf.d/default.conf
1010
# - .provision/nginx/.htpasswd:/etc/nginx/.htpasswd
1111
ports:
12-
- "80:80"
13-
- "443:443"
12+
- "8989:80"
1413
links:
1514
- php-fpm
1615

docker-compose.yml.local

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)