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