From 487a97220ca58df241694085aa4118125992e0b6 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Mon, 14 Sep 2020 23:46:52 -0400 Subject: Adjust the readme and explicitly make the docker-compose file an example --- docker-compose-example.yml | 15 +++++++++++++++ docker-compose.yml | 15 --------------- readme.md | 7 +++++++ 3 files changed, 22 insertions(+), 15 deletions(-) create mode 100644 docker-compose-example.yml delete mode 100644 docker-compose.yml 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' diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 5ea6959..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,15 +0,0 @@ -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' diff --git a/readme.md b/readme.md index 2817f27..af45937 100644 --- a/readme.md +++ b/readme.md @@ -103,3 +103,10 @@ And then ```shell $ docker-compose up -d ``` + +There's an example file that can be used with: + +``shell +$ docker-compose -f docker-compose-example.yml up -d +``` + -- cgit v1.2.3