https://github.com/logvik/worker-drupal
https://github.com/logvik/worker-drupal
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/logvik/worker-drupal
- Owner: logvik
- Created: 2017-02-08T08:54:59.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-03T14:59:48.000Z (almost 9 years ago)
- Last Synced: 2025-01-23T20:44:18.785Z (about 1 year ago)
- Language: Shell
- Size: 35.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Using
```
docker service create -eGIT_DEPLOY_KEY="-----BEGIN RSA PRIVATE KEY-----
dfdfewrwerwer
-----END RSA PRIVATE KEY-----
" -eGIT_REPO=ssh://git@github.com/root/repo.git -lcom.docker.stack.namespace=monitoring --container-label="com.docker.stack.namespace=monitoring" --name=php-worker --network=imig -p9000:9000 --replicas=2 --update-delay 30s logvik/php-worker-git-deploy:latest
```
# Result
You can set upstream for nginx config and make number of replicas as need just run
```
docker service update php-worker --replicas 5 --image logvik/php-worker-git-deploy:latest
```
If need just pull new code, then run
```
docker service update php-worker --image logvik/php-worker-git-deploy:latest --force
```
Any service updates will deploy new docker container and pull new code into container
# Use with Shadow demon server
Just uncomment in config/php/php.ini string
```
auto_prepend_file /usr/share/shadowd/Connector.php
```