blob: 4f4cfe70fc02cb984c551de99bbf0449afd8d3ce [file] [log] [blame]
[Unit]
Description=Registry server for Docker
After=docker.service
Requires=docker.service
[Service]
Type=simple
Environment=DOCKER_REGISTRY_CONFIG=/etc/docker-registry.yml
EnvironmentFile=-/etc/default/docker-registry
WorkingDirectory=#WORKDIR#
ExecStart=/usr/bin/gunicorn --access-logfile /var/log/docker-registry-access.log --error-logfile /var/log/docker-registry-error.log --debug --max-requests 100 --graceful-timeout 3600 -t 3600 -k gevent -b ${REGISTRY_ADDRESS}:${REGISTRY_PORT} -w ${GUNICORN_WORKERS} docker_registry.wsgi:application
Restart=on-failure
[Install]
WantedBy=multi-user.target