Skip to content

Simply another PHP project starter, with Docker. Beep Boop

Notifications You must be signed in to change notification settings

mitchellvanw/php-app-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP application starter with Docker

I was tired of having to copy these files around from project to project. So, here it is, a starter for your arbitrary php application.

To be frank, this is probably not the best starter for you or in general. The idea is to provide enough of the widely popular tools to get started in minutes. Simply remove or comment out the container you don't need.

What does it dooooo?

Lots of stuff.

But, it includes:

  • PHP (5 or 7, you choose)
  • NGINX (also known as "engine x")
  • MySQL 5.7 (pronounce it as "my ess cue ell")
  • Redis 3.0 (just "redis")
  • EventStore (talking about the geteventstore.com one)
  • Memcached (are we caching memes now?)
  • Beanstalkd (wait, do I have to climb that thing?)

There's more coming, like elasticsearch, and stuff.

How does it work?

Well, first of all, magic. Secondly, it's the easiest thing you've ever done, after you installed the metric crap ton of required software.

I run OS X, which means I just installed Kitematic and it Just Works (tm).

For Linux, click here

For Windows, click here

Done? Great! Let's gooooo.

$ docker-compose build & docker-compose up -d

It's not running, what did I do wrong?

Well, if you're like me, you've probably encountered every error humanly possible. In this situation I advice you to make an issue or spend countless hours in StackOverflow.

Image specific instructions

All images support environment variables using the following structure:

environment:
    - KEY=value

If you're a fan of passing in files then use the following structure:

env_file:
  - ./your-file.env

EventStore

You can login using the docker ip and adding the port 2113. If the installation was successful you should be able to login using the following credentials:

  • admin:changeit

Internet Points

Docker is awesome, but @nickstrnl is even more awesome. He did a lot of the work on this thing. So, follow him on twitter, you won't regret it. Really, you won't, simply because he hardly ever tweets.

P.S. Nick,

Tweet more.

About

Simply another PHP project starter, with Docker. Beep Boop

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •