| Docker Compose 101 | git submodules documentation |
Setup & Run
- Clone repo &
cd
into folder git submodule update --init
docker-compose up
orbash _scripts/start-containers.sh
To make changes to submodules (Please try this on your own version, not these demo repos!)
cd
into a submodule foldergit checkout <a-branch>
(usegit branch
as reference)- make changes, stage, commit as usual
- cd to your parent folder and push with
git push --recurse-submodules=on-demand
To pull remote updates to submodules
git pull --recurse-submodules
Teardown
docker-compose down --remove-orphans --volumes
orbash _scripts/stop-containers.sh