28 lines
625 B
YAML
Executable File
28 lines
625 B
YAML
Executable File
version: '3'
|
|
services:
|
|
registry:
|
|
restart: 'unless-stopped'
|
|
image: registry:2
|
|
environment:
|
|
REGISTRY_AUTH: htpasswd
|
|
REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd
|
|
REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
|
|
volumes:
|
|
- /data/registry.jean-cloud.net/data:/var/lib/registry
|
|
- /data/registry.jean-cloud.net/auth:/auth # htpasswd -Bbn admin password
|
|
networks:
|
|
default:
|
|
ipv4_address: 172.29.12.100
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
cpus: '0.50'
|
|
memory: 100M
|
|
|
|
networks:
|
|
default:
|
|
ipam:
|
|
config:
|
|
- subnet: 172.29.12.0/24
|
|
|