Signed-off-by: Tobias Manske <tobias.manske@mailbox.org>
This commit is contained in:
2022-06-18 14:12:12 +02:00
commit b449a279cd
42 changed files with 4876 additions and 0 deletions

1
compose/01_registry/.env Normal file
View File

@ -0,0 +1 @@
COMPOSE_PROJECT_NAME=registry

View File

@ -0,0 +1,29 @@
---
services:
registry:
container_name: registry
restart: always
labels:
- "com.centurylinklabs.watchtower.scope=update"
- "traefik.enable=true"
- "traefik.http.routers.registry.rule=Host(`registry.tobiasmanske.de`)"
- "traefik.http.routers.registry.entryPoints=websecure"
- "traefik.http.services.registry.loadbalancer.server.port=5000"
image: 'registry:2'
networks:
- gateway
environment:
REGISTRY_AUTH: htpasswd
REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd
REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
volumes:
- registry_data:/var/lib/registry
- ./htpasswd:/auth/htpasswd:ro,z
volumes:
registry_data:
networks:
gateway:
external: true
...

View File

@ -0,0 +1,3 @@
{% for line in registry.HTPASSWD %}
{{ line }}
{% endfor %}