From 8e6cfa183b7ba6881e04c95529329fdf9c8ba9d8 Mon Sep 17 00:00:00 2001 From: Laszlo Valko Date: Fri, 13 Jul 2018 02:48:57 +0200 Subject: [PATCH] Initial commit. --- .gitignore | 2 ++ README.md | 0 docker-compose.yml | 19 +++++++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 docker-compose.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fd79799 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*~ +ssl diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..f79beb6 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,19 @@ +--- +version: '3.2' +services: + registry: + image: registry:2 + container_name: registry + environment: + REGISTRY_HTTP_ADDR: 0.0.0.0:${WEB_HTTPS_PORT} + REGISTRY_HTTP_TLS_CERTIFICATE: /certs/fullchain.pem + REGISTRY_HTTP_TLS_KEY: /certs/privkey.pem +# REGISTRY_AUTH: htpasswd +# REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd +# REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm + volumes: + - /var/lib/registry:/var/lib/registry + - /admin/src/docker-registry/ssl:/certs + ports: + - "${EXTERNAL_IP}:${EXTERNAL_PORT}:${WEB_HTTPS_PORT}" + restart: unless-stopped