blob: 4f4cfe70fc02cb984c551de99bbf0449afd8d3ce [file] [log] [blame]
Patrick Williamsd849ec72016-08-17 14:59:38 -05001[Unit]
2Description=Registry server for Docker
3After=docker.service
4Requires=docker.service
5
6[Service]
7Type=simple
8Environment=DOCKER_REGISTRY_CONFIG=/etc/docker-registry.yml
9EnvironmentFile=-/etc/default/docker-registry
10WorkingDirectory=#WORKDIR#
11ExecStart=/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
12Restart=on-failure
13
14[Install]
15WantedBy=multi-user.target