Dockerized mysql,php,webserver
This commit is contained in:
parent
a2f70fc9ef
commit
2f29555240
16 changed files with 164440 additions and 93942 deletions
7
pfosten/docker-compose/mysql/init/01-databases.sql
Normal file
7
pfosten/docker-compose/mysql/init/01-databases.sql
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# create databases
|
||||
CREATE DATABASE IF NOT EXISTS `local_laravel`;
|
||||
|
||||
# create local_developer user and grant rights
|
||||
CREATE USER 'local_developer'@'db' IDENTIFIED BY 'secret';
|
||||
GRANT ALL PRIVILEGES ON *.* TO 'local_developer'@'%';
|
||||
|
||||
4
pfosten/docker-compose/mysql/my.cnf
Normal file
4
pfosten/docker-compose/mysql/my.cnf
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[mysqld]
|
||||
general_log = 1
|
||||
general_log_file = /var/lib/mysql/general.log
|
||||
|
||||
21
pfosten/docker-compose/nginx/default.conf
Normal file
21
pfosten/docker-compose/nginx/default.conf
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
server {
|
||||
listen 80;
|
||||
index index.php index.html;
|
||||
error_log /var/log/nginx/error.log;
|
||||
access_log /var/log/nginx/access.log;
|
||||
root /var/www/public;
|
||||
location ~ \.php$ {
|
||||
try_files $uri =404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass app:9000;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
}
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
gzip_static on;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue