mirror of
https://gitlab.sectorq.eu/home/docker-compose.git
synced 2025-12-14 18:34:53 +01:00
40 lines
956 B
YAML
40 lines
956 B
YAML
services:
|
|
app:
|
|
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
|
|
loki-relabel-config: |
|
|
- action: labelmap
|
|
regex: swarm_stack
|
|
replacement: namespace
|
|
- action: labelmap
|
|
regex: swarm_(service)
|
|
ports:
|
|
- target: 5000
|
|
published: 5000
|
|
protocol: tcp
|
|
mode: ingress
|
|
volumes:
|
|
- auth:/auth
|
|
- /share/docker_registry/data:/var/lib/registry
|
|
- config:/etc/docker/registry/
|
|
|
|
deploy:
|
|
labels:
|
|
wud.watch: 'false'
|
|
wud.watch.digest: 'false'
|
|
service_name: 'registry'
|
|
replicas: 1
|
|
restart_policy:
|
|
condition: any
|
|
|
|
volumes:
|
|
auth:
|
|
config: |