Giter Club home page Giter Club logo

dockerfile's Introduction

dockerfile

My custom docker file

nginx

  1. logrotate config of nginx at /etc/logrotate.d/nginx
  2. nginx log in /var/log/nginx

supervisor

  1. config file at /etc/supervisor/supervisor.conf
program section example:

[program:exmaple-program]
process_name=%(program_name)s_%(process_num)02d
command=<command>
autostart=true
autorestart=true
stopsignal=TERM
numprocs=8
user=root
redirect_stderr=true
stdout_logfile=<log file path>
  1. included config in /etc/supervisor/conf.d
  2. supervisor website

redis

  1. redis.conf at /usr/local/etc/redis/redis.conf
  2. users.acl at /usr/local/etc/redis/users.acl

mysql

  1. create predefined password that is "root" for root user
  2. you should change your password of thr root user
  3. TZ that is environment variable can change system time zone
  4. slow log and error in /var/log/mysql
  5. database data in /var/lib/mysql

php-fpm

  1. php ini file at /usr/local/etc/php
  2. php fpm log path is /usr/local/var/log/php-fpm.log
  3. /etc/cron.d has laravel scheduler (only for production image tag)
  4. xdebug settings in /usr/local/etc/php/conf.d/xdebug.ini (only for development image tag)

dockerfile's People

Contributors

chanjuihuang avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.