Skip to content

Example repo demonstrating principal of app container & named Volume to share code between running container services

Notifications You must be signed in to change notification settings

joemewes/docker-app-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-app-container

Example repo demonstrating principal of app container & named Volume to share code between running container services


BUILD EXAMPLE IMAGE LOCALLY

docker build -t app-container-exmaple .  

Now you have an Docker image with your applications source code inside.

This can be run as a container or pushed to a remote registry. eg Docker Hub or Amazon ECR.


START APP

docker-compose up -d

ls the /app/www directory of the generic nginx and php containers

docker exec -i dockerappcontainer_php_1 ls /app/www 
docker exec -i dockerappcontainer_nginx_1 ls /app/www 

About

Example repo demonstrating principal of app container & named Volume to share code between running container services

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages