move registry to proxy
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
85af7c17fa
commit
47ea50484b
|
@ -86,6 +86,51 @@ services:
|
||||||
- NGROK_AUTH_TOKEN=${NGROK_AUTH_TOKEN}
|
- NGROK_AUTH_TOKEN=${NGROK_AUTH_TOKEN}
|
||||||
networks:
|
networks:
|
||||||
- appnet
|
- appnet
|
||||||
|
registry:
|
||||||
|
# internal registry
|
||||||
|
deploy:
|
||||||
|
placement:
|
||||||
|
constraints: [node.labels.com.sigyl.git-stack == yes]
|
||||||
|
replicas: 1
|
||||||
|
restart_policy:
|
||||||
|
condition: any
|
||||||
|
image: registry:2
|
||||||
|
volumes:
|
||||||
|
- registry-data:/var/lib/registry
|
||||||
|
environment:
|
||||||
|
- REGISTRY_HTTP_ADDR=0.0.0.0:5000
|
||||||
|
- REGISTRY_HTTP_TLS_CERTIFICATE="/run/secrets/registry-cert"
|
||||||
|
- REGISTRY_HTTP_TLS_KEY="/run/secrets/registry-key"
|
||||||
|
networks:
|
||||||
|
- appnet
|
||||||
|
secrets:
|
||||||
|
- registry-cert
|
||||||
|
- registry-key
|
||||||
|
ports:
|
||||||
|
- 5003:5000
|
||||||
|
registry-cache:
|
||||||
|
# registry cache (used?)
|
||||||
|
deploy:
|
||||||
|
placement:
|
||||||
|
constraints: [node.labels.com.sigyl.git-stack == yes]
|
||||||
|
replicas: 1
|
||||||
|
restart_policy:
|
||||||
|
condition: any
|
||||||
|
image: registry:2
|
||||||
|
ports:
|
||||||
|
- 5002:5001
|
||||||
|
volumes:
|
||||||
|
- registry-cache-data:/var/lib/registry
|
||||||
|
environment:
|
||||||
|
- REGISTRY_HTTP_ADDR=0.0.0.0:5001
|
||||||
|
- REGISTRY_HTTP_TLS_CERTIFICATE="/run/secrets/registry-cert"
|
||||||
|
- REGISTRY_HTTP_TLS_KEY="/run/secrets/registry-key"
|
||||||
|
- REGISTRY_PROXY_REMOTEURL=http://registry-1.docker.io
|
||||||
|
networks:
|
||||||
|
- appnet
|
||||||
|
secrets:
|
||||||
|
- registry-cert
|
||||||
|
- registry-key
|
||||||
registry-1:
|
registry-1:
|
||||||
deploy:
|
deploy:
|
||||||
placement:
|
placement:
|
||||||
|
@ -113,3 +158,8 @@ networks:
|
||||||
externalnet:
|
externalnet:
|
||||||
driver: overlay
|
driver: overlay
|
||||||
external: true
|
external: true
|
||||||
|
secrets:
|
||||||
|
'registry-cert':
|
||||||
|
file: .certificates/registry.crt
|
||||||
|
'registry-key':
|
||||||
|
file: .certificates/registry.key
|
||||||
|
|
|
@ -98,51 +98,6 @@ services:
|
||||||
- SIGYL_STACK_ROOT=$SIGYL_STACK_ROOT
|
- SIGYL_STACK_ROOT=$SIGYL_STACK_ROOT
|
||||||
networks:
|
networks:
|
||||||
- appnet
|
- appnet
|
||||||
registry:
|
|
||||||
# internal registry
|
|
||||||
deploy:
|
|
||||||
placement:
|
|
||||||
constraints: [node.labels.com.sigyl.git-stack == yes]
|
|
||||||
replicas: 1
|
|
||||||
restart_policy:
|
|
||||||
condition: any
|
|
||||||
image: registry:2
|
|
||||||
volumes:
|
|
||||||
- registry-data:/var/lib/registry
|
|
||||||
environment:
|
|
||||||
- REGISTRY_HTTP_ADDR=0.0.0.0:5000
|
|
||||||
- REGISTRY_HTTP_TLS_CERTIFICATE="/run/secrets/registry-cert"
|
|
||||||
- REGISTRY_HTTP_TLS_KEY="/run/secrets/registry-key"
|
|
||||||
networks:
|
|
||||||
- appnet
|
|
||||||
secrets:
|
|
||||||
- registry-cert
|
|
||||||
- registry-key
|
|
||||||
ports:
|
|
||||||
- 5003:5000
|
|
||||||
registry-cache:
|
|
||||||
# registry cache (used?)
|
|
||||||
deploy:
|
|
||||||
placement:
|
|
||||||
constraints: [node.labels.com.sigyl.git-stack == yes]
|
|
||||||
replicas: 1
|
|
||||||
restart_policy:
|
|
||||||
condition: any
|
|
||||||
image: registry:2
|
|
||||||
ports:
|
|
||||||
- 5002:5001
|
|
||||||
volumes:
|
|
||||||
- registry-cache-data:/var/lib/registry
|
|
||||||
environment:
|
|
||||||
- REGISTRY_HTTP_ADDR=0.0.0.0:5001
|
|
||||||
- REGISTRY_HTTP_TLS_CERTIFICATE="/run/secrets/registry-cert"
|
|
||||||
- REGISTRY_HTTP_TLS_KEY="/run/secrets/registry-key"
|
|
||||||
- REGISTRY_PROXY_REMOTEURL=http://registry-1.docker.io
|
|
||||||
networks:
|
|
||||||
- appnet
|
|
||||||
secrets:
|
|
||||||
- registry-cert
|
|
||||||
- registry-key
|
|
||||||
ghost:
|
ghost:
|
||||||
# ghost blog
|
# ghost blog
|
||||||
deploy:
|
deploy:
|
||||||
|
|
Reference in New Issue