Skip to content

Commit

Permalink
feature/digital-ocean-1-click-installer (#665)
Browse files Browse the repository at this point in the history
* Added initial one click DigitalOcean installer
* Fix gunicorn temp location
* Moved docker run config around
* added django allowed hosts
  • Loading branch information
dabeeeenster authored Jan 10, 2022
1 parent 06b3d90 commit b3acebf
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .do/deploy.template.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# This file describes the deployment for a Digital Ocean One Click app install
# It builds the unified dockerfile, creates a DB connects the Flagsmith server to the DB

spec:
name: flagsmith
services:
- name: flagsmith-server
dockerfile_path: Dockerfile
http_port: 8000
git:
branch: main
repo_clone_url: https://github.com/flagsmith/flagsmith.git
envs:
- key: DATABASE_URL
scope: RUN_TIME
value: ${flagsmith-db.DATABASE_URL}
- key: DJANGO_ALLOWED_HOSTS
scope: RUN_TIME
value: '*'
databases:
- name: flagsmith-db
2 changes: 1 addition & 1 deletion api/scripts/run-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
set -e

python manage.py migrate
gunicorn --bind 0.0.0.0:8000 --workers ${GUNICORN_WORKERS:-3} --threads ${GUNICORN_THREADS:-2} app.wsgi --access-logfile $ACCESS_LOG_LOCATION
gunicorn --bind 0.0.0.0:8000 --worker-tmp-dir /dev/shm --workers ${GUNICORN_WORKERS:-3} --threads ${GUNICORN_THREADS:-2} --access-logfile $ACCESS_LOG_LOCATION app.wsgi

0 comments on commit b3acebf

Please sign in to comment.