Skip to content

Commit 6896a84

Browse files
author
AlexVakhovski
committed
Optimize structure, enhance generator functionality
1 parent 4b4ee75 commit 6896a84

File tree

21 files changed

+948
-64
lines changed

21 files changed

+948
-64
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ Run `build.bat`
5858
- `.env`
5959
- `dockdev`
6060
- `templates`
61-
- `shared-services`
6261

6362
---
6463
## 💡 Before you start!
@@ -93,6 +92,7 @@ Run `build.bat`
9392

9493
- Create `domains/app.local/`
9594
- Assign next free IP like `10.0.100.12`
95+
- Assign IP's for all project containers
9696
- Generate:
9797
- `docker-compose.yml`
9898
- `conf/nginx/default.conf`
@@ -132,9 +132,9 @@ Deletes:
132132
- 🔧 `dockdev`: CLI manager (Go)
133133
- 📁 `templates/`: reusable template files
134134
> You can extend docker-compose.yml.tmpl with your containers
135-
- 🌍 `shared-services/`: reverse proxy & global services (Mysql)
135+
- 🌍 `shared-services/`: reverse proxy & shared Mysql DB
136136
- 🛠 `.ipmap.env`
137-
>📘 Reference file for developers, to track which domain was assigned to which IP
137+
>📘 Reference file for developers, to track which containers was assigned to which IP
138138
- 🔌 All containers in one shared Docker `bridge` network
139139

140140
---

dist/.env

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1+
# Docker network
12
NETWORK_NAME=local_net
23
SUBNET=10.0.100.0/24
3-
REVERSE_PROXY_IP=10.0.100.1
4+
5+
# IP allocation
6+
REVERSE_PROXY_IP=10.0.100.2
7+
SHARED_MYSQL_IP=10.0.100.3
48
PROJECT_START_IP=10.0.100.10
9+
10+
# Shared MySQL credentials
11+
MYSQL_ROOT_PASSWORD=root
12+
MYSQL_USER=user
13+
MYSQL_PASSWORD=userpass

dist/dockdev

53.8 KB
Binary file not shown.

dist/shared-services/docker-compose.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
; priority=90
2+
; ?priority=90
3+
[blackfire]
4+
extension=blackfire.so
5+
; Default port is 8707.
6+
; You can check the actual configuration by running (see "socket" setting):
7+
; docker-compose exec blackfire_agent blackfire-agent -d
8+
blackfire.agent_socket = tcp://blackfire:8707
9+
blackfire.agent_timeout = 0.25
10+
11+
;Sets fine-grained configuration for Probe.
12+
;This should be left blank in most cases. For most installs,
13+
;the server credentials should only be set in the agent.
14+
;blackfire.server_id =
15+
16+
;Sets fine-grained configuration for Probe.
17+
;This should be left blank in most cases. For most installs,
18+
;the server credentials should only be set in the agent.
19+
;blackfire.server_token =
20+
blackfire.log_level = 3
21+
blackfire.log_file = /var/html/www/storage/logs/blackfire.log
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# opcache.ini
2+
# https://medium.com/appstract/make-your-laravel-app-fly-with-php-opcache-9948db2a5f93
3+
[opcache]
4+
opcache.enable=0
5+
6+
; maximum memory that OPcache can use to store compiled PHP files, Symfony recommends 256
7+
opcache.memory_consumption=512
8+
9+
; maximum number of files that can be stored in the cache
10+
;https://www.php.net/manual/en/opcache.configuration.php#ini.opcache.max-accelerated-files
11+
opcache.max_accelerated_files=32531
12+
13+
;How many Megabyte you want to assign to interned strings.
14+
opcache.interned_strings_buffer=64
15+
16+
;This will revalidate the script.
17+
;If you set this to 0(best performance), you need to manually clear the OPcache every time your PHP code changes
18+
opcache.validate_timestamps=0
19+
20+
;This will preserve comments in your script, I recommend to keep this enabled, as some libraries depend on it.
21+
opcache.save_comments=1
22+
23+
;Set to true to use `artisan opcache:compile`
24+
opcache.dups_fix=1
25+

dist/templates/conf/php/pcov.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
pcov.directory=/var/www/html/src/app
2+
pcov.exclude=none
3+
pcov.initial.memory=65336
4+
pcov.initial.files=64

0 commit comments

Comments
 (0)