-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (53 loc) · 1.88 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# If you dont trust yaronshani/git-subfolder-project:0.0.1 image you can use "build: ." instead to build it locally
services:
httpd:
#build: .
image: yaronshani/git-subfolder-project:0.0.2
volumes:
- ./apache2-git-subfolder.conf:/usr/local/apache2/conf/httpd.conf
- ./apache-selfsigned.key:/usr/local/apache2/conf/apache-selfsigned.key
- ./apache-selfsigned.crt:/usr/local/apache2/conf/apache-selfsigned.crt
- ./git-hook.py:/usr/libexec/git-core/git
- ./git-http-hook.py:/git-hooks/git-http-hook.py
- ./git-repo:/git-repo
command: ["httpd-foreground"]
environment:
- GIT_FILTER_PATH:.gitfilterspec
ports:
- 443:443
mitm-proxy:
#build: .
user: www-data
image: yaronshani/git-subfolder-project:0.0.2
environment:
- REPO_PATH=${REPO_PATH}
- GIT_FILTER_PATH=/git-repo/${REPO_PATH}/.gitfilterspec
volumes:
- ./git-repo:/git-repo
- ./cookies.json:/app/cookies.json
- ./mitm.py:/app/mitm.py
command: ["mitmdump", "-s", "/app/mitm.py", "-p", "8080"]
ports:
- 127.0.0.1:8080:8080
github-web-login:
#build: .
image: yaronshani/git-subfolder-project:0.0.2
environment:
- GIT_USERNAME=${GIT_USERNAME}
- GIT_PASSWORD=${GIT_PASSWORD}
volumes:
- ./cookies.json:/app/cookies.json
- ./github-web-login.py:/app/github-web-login.py
command: ["/app/github-web-login.py", "${GIT_USERNAME}", "${GIT_PASSWORD}"]
git-clone-and-refresh:
#build: .
user: www-data
image: yaronshani/git-subfolder-project:0.0.2
environment:
- GIT_USERNAME=${GIT_USERNAME}
- GIT_TOKEN=${GIT_TOKEN}
- REPO_PATH=${REPO_PATH}
volumes:
- ./git-repo:/app/git-repo
- ./git-clone-and-refresh.sh:/app/git-clone-and-refresh.sh
command: ["/app/git-clone-and-refresh.sh", "${GIT_USERNAME}", "${GIT_TOKEN}", "${REPO_PATH}"]