Skip to content

Instantly share code, notes, and snippets.

View olegbraun2's full-sized avatar

Oleg Braun olegbraun2

View GitHub Profile
@olegbraun2
olegbraun2 / default
Last active May 15, 2020 23:00
How to setup Ubuntu LEMP stack
##
# /etc/nginx/sites-available/default
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# https://www.nginx.com/resources/wiki/start/
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
# https://wiki.debian.org/Nginx/DirectoryStructure
#
# In most cases, administrators will remove this file from sites-enabled/ and
# leave it as reference inside of sites-available where it will continue to be
@olegbraun2
olegbraun2 / Dockerfile
Last active January 18, 2019 21:22
Dev set for laravel docker-compose with Dockerfile for obraun/php7.1:latest
FROM php:7.1.26-fpm-stretch
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN apt-get install -y libmcrypt-dev
RUN apt-get install -y mysql-client
RUN apt-get install -y libmagickwand-dev --no-install-recommends
RUN pecl install imagick
RUN docker-php-ext-enable imagick
RUN docker-php-ext-install mcrypt pdo_mysql