THIS IS A SAMPLE QUESTION! NEVER DO IT IN PRODUCTION. RUN NGINX / PHP / OTHER SERVICES IN SEPARATE CONTAINERS! When I start docker-compose up the Ubuntu container exits with ubuntu exited with code 0. When I run docker run -d -ti -p 80:80 -v ~/sph/laravel52:/www/laravel ubuntu, all works fine. How can I replicate this behavior using Docker Compose? This is my Dockerfile: # Version: 0.0.1 FROM ubun