Example code for a presentation I gave during a 'Knowledge Sharing' session at work. I presented the simplest approach I could think of to deploying a web application using Docker.
Brief summary of steps:
- Hold code in a git repository
- Write
Dockerfile
anddocker-compose.yml
- Obtain a server with compatibility to run Docker
- Pull down code from git repository
- Build image using
Dockerfile
- Use
docker-compose
with the-d
flag - You now have a deployed web application