mirror of
https://gitlab.sectorq.eu/home/docker-compose.git
synced 2025-12-14 18:34:53 +01:00
build
This commit is contained in:
28
__swarm/registry/registry-swarm.yml
Normal file
28
__swarm/registry/registry-swarm.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
services:
|
||||
registry:
|
||||
environment:
|
||||
REGISTRY_STORAGE_DELETE_ENABLED: 'true'
|
||||
REGISTRY_AUTH: htpasswd
|
||||
REGISTRY_AUTH_HTPASSWD_REALM: Registry Realm
|
||||
REGISTRY_AUTH_HTPASSWD_PATH: /auth/htpasswd
|
||||
image: registry:2
|
||||
logging:
|
||||
driver: loki
|
||||
options:
|
||||
loki-url: http://192.168.77.101:3100/loki/api/v1/push
|
||||
ports:
|
||||
- target: 5000
|
||||
published: 5000
|
||||
protocol: tcp
|
||||
mode: ingress
|
||||
volumes:
|
||||
- auth:/auth
|
||||
- data:/var/lib/registry
|
||||
deploy:
|
||||
labels:
|
||||
wud.watch: 'false'
|
||||
wud.watch.digest: 'false'
|
||||
replicas: 1
|
||||
placement:
|
||||
constraints:
|
||||
- node.role == manager
|
||||
Reference in New Issue
Block a user