From f30d357f4aab7772673f3a3e3224c26ef7919ba6 Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Fri, 8 Sep 2023 10:26:53 +0200 Subject: [PATCH] added registry deployment --- .gitignore | 2 ++ docker-compose.yml | 9 +++++++++ example.env | 4 ++++ 3 files changed, 15 insertions(+) create mode 100644 .gitignore create mode 100644 docker-compose.yml create mode 100644 example.env diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fb58dee --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.env +data diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..47ad276 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,9 @@ +--- +services: + registry: + image: registry:${REGISTRY_VERSION} + restart: unless-stopped + ports: + - ${REGISTRY_PORT}:5000 + volumes: + - ${REGISTRY_DATA}:/var/lib/registry diff --git a/example.env b/example.env new file mode 100644 index 0000000..ceac61f --- /dev/null +++ b/example.env @@ -0,0 +1,4 @@ +# Docker Registry +REGISTRY_VERSION=2.8.2 +REGISTRY_PORT=5000 +REGISTRY_DATA=./data