A docker container which sync content of a volume with a git repository.
1.7K
docker volume create -d local --name website_sources
docker run --name git-sync -d \
-e GIT_SYNC_REPO=https://github.com/devsenexx/git-sync \
-e GIT_SYNC_DEST=/git \
-e GIT_SYNC_BRANCH=master \
-e GIT_SYNC_REV=FETCH_HEAD \
-e GIT_SYNC_WAIT=10 \
-v website_sources:/git gici/git-sync
docker run --name nginx \
-d -p 8080:80 -v website_sources:/usr/share/nginx/html nginx
Content type
Image
Digest
Size
13.9 MB
Last updated
over 9 years ago
docker pull gici/git-sync