-
-
Save almereyda/7bb32a6d57d3c1ac37ca to your computer and use it in GitHub Desktop.
known - y.te.gs
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
known-yalamerde-db: | |
image: mysql | |
volumes: | |
- ./mysql/runtime:/var/lib/mysql | |
env_file: | |
- ./.env | |
restart: always | |
known-yalamerde-app: | |
image: indiehosters/known | |
links: | |
- known-yalamerde-db:db | |
volumes: | |
- ./data:/var/www/html/Uploads | |
env_file: | |
- ./.env | |
restart: always | |
known-yalamerde-web: | |
image: nginx | |
volumes: | |
- ./nginx.conf:/etc/nginx/nginx.conf:ro | |
links: | |
- known-yalamerde-app:app | |
volumes_from: | |
- known-yalamerde-app | |
expose: | |
- "80" | |
environment: | |
VIRTUAL_HOST: 'y.te.gs' | |
VIRTUAL_PORT: '80' | |
restart: always |
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
root@rancher:/srv/docker-state/known-yalamerde# cat nginx.conf | |
user www-data; | |
events { | |
worker_connections 768; | |
} | |
http { | |
upstream backend { | |
server app:9000; | |
} | |
include /etc/nginx/mime.types; | |
default_type application/octet-stream; | |
gzip on; | |
gzip_disable "msie6"; | |
server { | |
listen 80; | |
root /var/www/html; | |
index index.php; | |
location / { | |
try_files $uri $uri/ /index.php?$query_string; | |
} | |
location ~ \.php$ { | |
fastcgi_param GATEWAY_INTERFACE CGI/1.1; | |
fastcgi_param SERVER_SOFTWARE nginx; | |
fastcgi_param QUERY_STRING $query_string; | |
fastcgi_param REQUEST_METHOD $request_method; | |
fastcgi_param CONTENT_TYPE $content_type; | |
fastcgi_param CONTENT_LENGTH $content_length; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_param SCRIPT_NAME $fastcgi_script_name; | |
fastcgi_param REQUEST_URI $request_uri; | |
fastcgi_param DOCUMENT_URI $document_uri; | |
fastcgi_param DOCUMENT_ROOT $document_root; | |
fastcgi_param SERVER_PROTOCOL $server_protocol; | |
fastcgi_param REMOTE_ADDR $remote_addr; | |
fastcgi_param REMOTE_PORT $remote_port; | |
fastcgi_param SERVER_ADDR $server_addr; | |
fastcgi_param SERVER_PORT $server_port; | |
fastcgi_param SERVER_NAME $server_name; | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
fastcgi_index index.php; | |
fastcgi_param PHP_VALUE "cgi.fix_pathinfo=0 \n upload_max_filesize=1000M \n post_max_size=1080M"; | |
fastcgi_intercept_errors on; | |
fastcgi_pass backend; | |
} | |
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { | |
expires max; | |
log_not_found off; | |
} | |
location ~ /\.ht { | |
deny all; | |
} | |
location ~* \.(xml|ini)$ { | |
deny all; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment