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.
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.
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
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.
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
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
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.