aboutsummaryrefslogtreecommitdiff
path: root/docker-compose-example.yml
diff options
context:
space:
mode:
Diffstat (limited to 'docker-compose-example.yml')
-rw-r--r--docker-compose-example.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/docker-compose-example.yml b/docker-compose-example.yml
new file mode 100644
index 0000000..5ea6959
--- /dev/null
+++ b/docker-compose-example.yml
@@ -0,0 +1,15 @@
+version: '3'
+services:
+ cgit:
+ build:
+ context: .
+ image: cgit
+ volumes:
+ - ./homedir:/var/git
+ - ./hostkeys:/var/hostkeys
+ environment:
+ - CGIT_UID=1000
+ - CGIT_GID=1000
+ ports:
+ - '127.0.0.1:8080:8080'
+ - '0.0.0.0:8022:8022'