2022-12-07 21:39:45 +01:00
|
|
|
version: "3.0"
|
2022-12-03 15:22:05 +01:00
|
|
|
|
|
|
|
services:
|
|
|
|
registry:
|
2022-12-07 21:39:45 +01:00
|
|
|
container_name: registry
|
2022-12-03 15:22:05 +01:00
|
|
|
image: registry:2.8.1
|
2022-12-07 21:39:45 +01:00
|
|
|
restart: unless-stopped
|
2022-12-03 15:22:05 +01:00
|
|
|
environment:
|
|
|
|
REGISTRY_AUTH: htpasswd
|
|
|
|
REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
|
|
|
|
REGISTRY_AUTH_HTPASSWD_PATH: /registry.password
|
|
|
|
volumes:
|
|
|
|
- data:/var/lib/registry
|
|
|
|
- ./registry.password:/registry.password
|
2022-12-07 21:39:45 +01:00
|
|
|
ports:
|
|
|
|
- "5000:5000"
|
2022-12-03 15:22:05 +01:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
data:
|