Compare commits
2 commits
4ffdaea8d3
...
3893216a8b
Author | SHA1 | Date | |
---|---|---|---|
3893216a8b | |||
9df8565e34 |
2 changed files with 39 additions and 9 deletions
|
@ -88,7 +88,7 @@ steps:
|
||||||
- ssh -o StrictHostKeyChecking=no
|
- ssh -o StrictHostKeyChecking=no
|
||||||
-i ~/.ssh/deploy_key
|
-i ~/.ssh/deploy_key
|
||||||
"$SSH_USER@$SSH_HOST"
|
"$SSH_USER@$SSH_HOST"
|
||||||
git:from-image automation
|
git:from-image objectstorage
|
||||||
"glenux/service-garage:${DRONE_COMMIT_SHA:0:8}"
|
"glenux/service-garage:${DRONE_COMMIT_SHA:0:8}"
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
46
README.md
46
README.md
|
@ -14,6 +14,10 @@ Setup internal network
|
||||||
dokku network:create objstorage_net
|
dokku network:create objstorage_net
|
||||||
dokku network:set code attach-post-create objstorage_net
|
dokku network:set code attach-post-create objstorage_net
|
||||||
|
|
||||||
|
Deploy image
|
||||||
|
|
||||||
|
dokku git:from-image automation glenux/service-garage:xxxx
|
||||||
|
|
||||||
Setup proxy
|
Setup proxy
|
||||||
|
|
||||||
dokku proxy:ports-clear objstorage
|
dokku proxy:ports-clear objstorage
|
||||||
|
@ -22,9 +26,9 @@ Setup storage
|
||||||
|
|
||||||
dokku storage:mount objstorage /var/lib/dokku/data/storage/cloud/apps:/var/www/html/apps
|
dokku storage:mount objstorage /var/lib/dokku/data/storage/cloud/apps:/var/www/html/apps
|
||||||
|
|
||||||
Deploy image
|
Restart
|
||||||
|
|
||||||
dokku git:from-image automation glenux/service-garage:xxxx
|
dokku ps:restart objstorage
|
||||||
|
|
||||||
### Web relay
|
### Web relay
|
||||||
|
|
||||||
|
@ -32,23 +36,37 @@ Create app
|
||||||
|
|
||||||
dokku apps:create objstorage-web
|
dokku apps:create objstorage-web
|
||||||
|
|
||||||
|
Setup internal network
|
||||||
|
|
||||||
|
dokku network:set objstorage-web attach-post-create objstorage_net
|
||||||
|
|
||||||
Setup domain
|
Setup domain
|
||||||
|
|
||||||
dokku domains:add objstorage-web web.apps.example.com
|
dokku domains:add objstorage-web web.apps.example.com
|
||||||
dokku domains:add objstorage-web *.web.apps.example.com
|
dokku domains:add objstorage-web *.web.apps.example.com
|
||||||
|
|
||||||
|
Setup proxy
|
||||||
|
|
||||||
|
dokku proxy:ports-clear objstorage-web
|
||||||
|
dokku proxy: FIXME: setup proxy ports
|
||||||
|
|
||||||
Setup TLS
|
Setup TLS
|
||||||
|
|
||||||
dokku config:set --no-restart objstorage-web DOKKU_LETSENCRYPT_EMAIL=username@example.com
|
dokku config:set --no-restart objstorage-web DOKKU_LETSENCRYPT_EMAIL=username@example.com
|
||||||
dokku letsencrypt:enable objstorage-web
|
dokku letsencrypt:enable objstorage-web
|
||||||
|
|
||||||
|
|
||||||
Configure docker options
|
Configure docker options
|
||||||
|
|
||||||
dokku config:set objstorage-web DOKKU_DOCKERFILE_START_CMD="FIXME: command for socat"
|
dokku config:set objstorage-web DOKKU_DOCKERFILE_START_CMD="tcp-listen:FIXME:port,fork,reuseaddr tcp-connect:objstorage:FIXME:port"
|
||||||
|
|
||||||
Deploy image
|
Deploy image
|
||||||
|
|
||||||
dokku git:from-image automation alpine/socat:xxxx
|
dokku git:from-image objstorage-web alpine/socat:xxxx
|
||||||
|
|
||||||
|
Restart
|
||||||
|
|
||||||
|
dokku ps:restart objstorage-web
|
||||||
|
|
||||||
### S3 relay
|
### S3 relay
|
||||||
|
|
||||||
|
@ -56,11 +74,24 @@ Create app
|
||||||
|
|
||||||
dokku apps:create objstorage-s3
|
dokku apps:create objstorage-s3
|
||||||
|
|
||||||
|
Setup internal network
|
||||||
|
|
||||||
|
dokku network:set objstorage-web attach-post-create objstorage_net
|
||||||
|
|
||||||
|
Deploy image
|
||||||
|
|
||||||
|
dokku git:from-image objstorage-s3 alpine/socat:xxxx
|
||||||
|
|
||||||
Setup domain
|
Setup domain
|
||||||
|
|
||||||
dokku domains:add objstorage s3.apps.example.com
|
dokku domains:add objstorage s3.apps.example.com
|
||||||
dokku domains:add objstorage *.s3.apps.example.com
|
dokku domains:add objstorage *.s3.apps.example.com
|
||||||
|
|
||||||
|
Setup proxy
|
||||||
|
|
||||||
|
dokku proxy:ports-clear objstorage-web
|
||||||
|
dokku proxy: FIXME: setup proxy ports
|
||||||
|
|
||||||
Setup TLS
|
Setup TLS
|
||||||
|
|
||||||
dokku config:set --no-restart objstorage DOKKU_LETSENCRYPT_EMAIL=username@example.com
|
dokku config:set --no-restart objstorage DOKKU_LETSENCRYPT_EMAIL=username@example.com
|
||||||
|
@ -68,10 +99,9 @@ Setup TLS
|
||||||
|
|
||||||
Configure docker options
|
Configure docker options
|
||||||
|
|
||||||
dokku config:set objstorage-web DOKKU_DOCKERFILE_START_CMD="FIXME: command for socat"
|
dokku config:set objstorage-web DOKKU_DOCKERFILE_START_CMD="tcp-listen:FIXME:port,fork,reuseaddr tcp-connect:objstorage:FIXME:port"
|
||||||
|
|
||||||
Deploy image
|
Restart
|
||||||
|
|
||||||
dokku git:from-image automation alpine/socat:xxxx
|
|
||||||
|
|
||||||
|
dokku ps:restart objstorage-s3
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue