Skip to content

tinker1987/docker_php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple dockerized PHP project

Containers

Main container was based on oficial PHP7.1-FPM. Out of the box You will have container with PHP7.1 (including memcached, mongodb, geoip, amqp extensions), supervisord and git onboard.

docker-compose.yml brings dependencies to next containers:

  • mysql
  • mongodb
  • redis
  • memcached
  • rabbitmq

HOWTO

1. How to run?

  • Install docker-ce

  • Install docker-compose

  • Copy .env.dist to .env and change variables as you need

  • Generate nginx ssl certificates via

    bash scripts/gen_nginx_ssl.sh

  • Copy your ssh keys to ./etc/ssh to make it possible to pull private repos from inside container

  • Run docker-compose up

To get information about available containers and ports see docker-compose.yml

2. How to use my ssh keys?

Simply put your private key under etc/ssh/

Note that You will need to start docker-compose build after You will make any changes to configuration

3. How to configure PhpStorm and xdebug?

You need to alias your local IP to something else :

  • On Mac: sudo ifconfig lo0 alias 10.254.254.254
  • On Linux: sudo ifconfig lo:1 10.254.254.254 up

in order to use XDebug properly (source).

Add 10.254.254.254 in DBGp Proxy > Host setting.

  • IDE key: PHPSTORM
  • Host: 10.254.254.254
  • Port: 9089

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published