-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from asefsoft/dockerizing
Dockerizing
- Loading branch information
Showing
298 changed files
with
1,155 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
src/.env | ||
src/node_modules | ||
src/vendor | ||
src/storage/logs | ||
src/storage/app/livewire-tmp | ||
src/storage/faramwork/cache | ||
src/storage/faramwork/sessions | ||
src/storage/faramwork/testing | ||
src/storage/faramwork/views | ||
src/storage/tv_shows.index | ||
src/tests/test.db | ||
src/tests/tv_shows.index | ||
src/.phpunit.result.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
IMAGE_TAG= | ||
COMPOSE_PROJECT_NAME=tv-alert | ||
|
||
# Laravel app envs | ||
DB_PASSWORD=2wdr5thu8ilp | ||
APP_URL=http://localhost:3838 | ||
# {local, production} | ||
APP_ENV=local | ||
APP_DEBUG=true | ||
|
||
MAIL_MAILER=smtp | ||
MAIL_HOST=host.docker.internal | ||
MAIL_PORT=25 | ||
MAIL_USERNAME=null | ||
MAIL_PASSWORD=null | ||
MAIL_ENCRYPTION=null | ||
MAIL_FROM_ADDRESS="[email protected]" | ||
MAIL_FROM_NAME="series-alert.ir" | ||
# set false for staging, true for main | ||
MAIL_VERIFY_PEER=false | ||
|
||
SESSION_DRIVER=database | ||
SESSION_DOMAIN=localhost |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,3 @@ | ||
/.phpunit.cache | ||
/node_modules | ||
/public/build | ||
/public/hot | ||
/public/storage | ||
/storage/*.key | ||
/vendor | ||
.env | ||
.env.backup | ||
.env.production | ||
.phpunit.result.cache | ||
Homestead.json | ||
Homestead.yaml | ||
auth.json | ||
npm-debug.log | ||
yarn-error.log | ||
/.fleet | ||
/.idea | ||
/.vscode | ||
/tests/test.db | ||
/tests/*.index | ||
/tv-alert.rar | ||
/storage/*.index | ||
.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM mysql:8.2 | ||
|
||
ARG password | ||
|
||
COPY ./deployment/config/mysql/create_database.sql /docker-entrypoint-initdb.d/create_database.sql | ||
RUN echo "ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '${password}';" >> /docker-entrypoint-initdb.d/set_native_password.sql | ||
COPY ./deployment/config/mysql/mysql.cnf /etc/mysql/conf.d/mysql.cnf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM nginx:1.25.4-alpine | ||
|
||
COPY ./src /usr/src | ||
COPY ./deployment/config/nginx.conf /etc/nginx/nginx.conf | ||
|
||
EXPOSE 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CREATE DATABASE tvalert; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[mysqld] | ||
slow_query_log=1 | ||
slow_query_log_file=/var/log/mysql/slow.log | ||
long_query_time=0.4 | ||
sort_buffer_size=3M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
worker_processes auto; | ||
|
||
events { | ||
worker_connections 1024; | ||
} | ||
|
||
http { | ||
access_log /var/log/nginx/access.log; | ||
error_log /var/log/nginx/error.log; | ||
include /etc/nginx/mime.types; | ||
|
||
gzip on; | ||
gzip_comp_level 4; | ||
gzip_types text/css application/javascript image/jpeg image/png; | ||
|
||
server { | ||
listen 80; | ||
server_name series-alert.ir; | ||
root /usr/src/public; | ||
index index.php index.html; | ||
|
||
location ~\.php { | ||
try_files $uri =404; | ||
include /etc/nginx/fastcgi.conf; | ||
fastcgi_pass app:9000; | ||
fastcgi_index index.php; | ||
fastcgi_param PATH_INFO $fastcgi_path_info; | ||
} | ||
|
||
location / { | ||
try_files $uri $uri/ /index.php?$query_string; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[opcache] | ||
opcache.enable=1 | ||
opcache.memory_consumption=256 | ||
opcache.interned_strings_buffer=16 | ||
opcache.validate_timestamps=0 | ||
opcache.revalidate_freq=10 | ||
|
||
;extension=redis.so | ||
|
||
log_errors = On | ||
error_log = /dev/stderr | ||
display_errors = On | ||
display_startup_errors = On | ||
error_reporting = E_ALL | ||
|
||
max_execution_time = 30 | ||
memory_limit = 128M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[opcache] | ||
opcache.enable=1 | ||
opcache.memory_consumption=256 | ||
opcache.interned_strings_buffer=16 | ||
opcache.validate_timestamps=0 | ||
opcache.revalidate_freq=60 | ||
|
||
;extension=redis.so | ||
|
||
log_errors = On | ||
error_log = /dev/stderr | ||
display_errors = Off | ||
display_startup_errors = Off | ||
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT | ||
|
||
max_execution_time = 30 | ||
memory_limit = 128M |
Oops, something went wrong.