]>
Commit | Line | Data |
---|---|---|
2383e830 ER |
1 | [Unit] |
2 | Description=Registry server for Docker | |
3 | ||
4 | [Service] | |
5 | Type=simple | |
6 | Environment=DOCKER_REGISTRY_CONFIG=/etc/docker-registry.yml | |
7 | EnvironmentFile=-/etc/sysconfig/docker-registry | |
8 | WorkingDirectory=#WORKDIR# | |
9 | ExecStart=/usr/bin/gunicorn --access-logfile - --debug --max-requests 100 --graceful-timeout 3600 -t 3600 -k gevent -b ${REGISTRY_ADDRESS}:${REGISTRY_PORT} -w $GUNICORN_WORKERS docker_registry.wsgi:application | |
10 | Restart=on-failure | |
11 | ||
12 | [Install] | |
13 | WantedBy=multi-user.target |