From 614e8041268dab8cb450263cf17c6200d47d4386 Mon Sep 17 00:00:00 2001 From: Midou36O Date: Thu, 5 Jan 2023 23:07:43 +0100 Subject: [PATCH 1/3] Add a docker compose file. --- compose.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 compose.yml diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..6e0dbad --- /dev/null +++ b/compose.yml @@ -0,0 +1,15 @@ +version: "3" +services: + gothub: + image: codeberg.org/gothub/gothub:latest + # image: codeberg.org/gothub/gothub:dev # Dev branch + restart: unless-stopped + ports: + - "3000:3000" + environment: + - DOCKER=true + healthcheck: + test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/version || exit 1 + interval: 30s + timeout: 5s + retries: 2 From a7bdf2de4624d16a9488d4affc4a437f55df4cd2 Mon Sep 17 00:00:00 2001 From: Midou36O Date: Thu, 5 Jan 2023 23:18:06 +0100 Subject: [PATCH 2/3] Fix indentation --- compose.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/compose.yml b/compose.yml index 6e0dbad..ba94287 100644 --- a/compose.yml +++ b/compose.yml @@ -3,13 +3,13 @@ services: gothub: image: codeberg.org/gothub/gothub:latest # image: codeberg.org/gothub/gothub:dev # Dev branch - restart: unless-stopped - ports: - - "3000:3000" - environment: - - DOCKER=true - healthcheck: - test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/version || exit 1 - interval: 30s - timeout: 5s - retries: 2 + restart: unless-stopped + ports: + - "3000:3000" + environment: + - DOCKER=true + healthcheck: + test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/version || exit 1 + interval: 30s + timeout: 5s + retries: 2 From 3c099ba41dba24a2beb971b7c7bf4d812fb4813c Mon Sep 17 00:00:00 2001 From: Midou36O Date: Thu, 5 Jan 2023 23:19:53 +0100 Subject: [PATCH 3/3] Delete the env. --- compose.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/compose.yml b/compose.yml index ba94287..8ff872b 100644 --- a/compose.yml +++ b/compose.yml @@ -6,8 +6,6 @@ services: restart: unless-stopped ports: - "3000:3000" - environment: - - DOCKER=true healthcheck: test: wget -nv --tries=1 --spider http://127.0.0.1:3000/api/v1/version || exit 1 interval: 30s