I have been using Portus for about 6 months now and it has been flawless. I am attempting to redeploy on new infrastructure and Rancher 1.1.2, Docker 1.12. I am using my own "real" certificates.
The SSLProxy container fails to launch with this error.
nginx: [emerg] host not found in upstream "portus" in /etc/nginx/conf.d/portus.conf:9
This is my docker compose file:
sslproxy:
labels:
io.rancher.scheduler.affinity:container_label_soft: registry.portus.db=1
io.rancher.scheduler.affinity:host_label: name=rancherpool-pvt
tty: true
image: nginx:1.9.9
links:
- portus:portus
volumes:
- /efs/data/registry/certs:/etc/nginx/certs:ro
- /efs/data/registry/proxy:/etc/nginx/conf.d:ro
stdin_open: true
lb:
ports:
- 5000:5000/tcp
- 443:443/tcp
labels:
io.rancher.scheduler.global: 'false'
io.rancher.loadbalancer.target.sslproxy: 443=443
io.rancher.scheduler.affinity:host_label: name=rancherpool-pvt
io.rancher.loadbalancer.target.registry: 5000=5000
tty: true
image: rancher/load-balancer-service
links:
- registry:registry
- sslproxy:sslproxy
stdin_open: true
registry:
environment:
REGISTRY_AUTH: token
REGISTRY_AUTH_TOKEN_ISSUER: reg.domain.com
REGISTRY_AUTH_TOKEN_REALM: https://reg.domain.com:443/v2/token
REGISTRY_AUTH_TOKEN_ROOTCERTBUNDLE: /certs/registry.crt
REGISTRY_AUTH_TOKEN_SERVICE: reg.domain.com:5000
REGISTRY_HTTP_SECRET: httpsecret
REGISTRY_HTTP_TLS_CERTIFICATE: /certs/registry.crt
REGISTRY_HTTP_TLS_KEY: /certs/registry.key
REGISTRY_LOG_LEVEL: warn
REGISTRY_NOTIFICATIONS_ENDPOINTS: |-
- name: portus
url: http://portus:3000/v2/webhooks/events
timeout: 500
threshold: 5
backoff: 1
REGISTRY_STORAGE_DELETE_ENABLED: 'true'
log_driver: ''
labels:
io.rancher.scheduler.affinity:host_label: name=rancherpool-pvt
log_opt: {}
image: registry:2.3.1
links:
- portus:portus
volumes:
- /efs/data/registry/certs:/certs:rw
- /efs/data/registry/data:/var/lib/registry:rw
portus:
environment:
PORTUS_CHECK_SSL_USAGE_ENABLED: 'true'
PORTUS_GRAVATAR_ENABLED: 'true'
PORTUS_KEY_PATH: /certs/registry.key
PORTUS_MACHINE_FQDN: reg.domain.com
PORTUS_PASSWORD: password$$
PORTUS_PORT: '443'
PORTUS_PRODUCTION_DATABASE: portus
PORTUS_PRODUCTION_HOST: aws.database.rds.amazonaws.com
PORTUS_PRODUCTION_PASSWORD: password$$
PORTUS_PRODUCTION_USERNAME: username
PORTUS_SECRET_KEY_BASE: password$$
PORTUS_SMTP_ENABLED: 'false'
REGISTRY_HOSTNAME: reg.domain.com
REGISTRY_NAME: Registry
REGISTRY_PORT: '5000'
REGISTRY_SSL_ENABLED: 'true'
log_driver: ''
labels:
registry.portus.app: '1'
io.rancher.container.pull_image: always
io.rancher.scheduler.affinity:host_label: name=rancherpool-pvt
log_opt: {}
image: sshipway/portus:2.0.5
volumes:
- /efs/data/registry/certs:/certs:rw
- /efs/data/registry/proxy:/etc/nginx/conf.d:rw
I have been using Portus for about 6 months now and it has been flawless. I am attempting to redeploy on new infrastructure and Rancher 1.1.2, Docker 1.12. I am using my own "real" certificates.
The SSLProxy container fails to launch with this error.
nginx: [emerg] host not found in upstream "portus" in /etc/nginx/conf.d/portus.conf:9
This is my docker compose file: