aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2019-03-27 23:06:36 -0400
committerMitch Riedstra <mitch@riedstra.us>2019-03-27 23:06:36 -0400
commitc49d9e0d69685d022fa6ffaa04f91bbe46f67551 (patch)
tree5f100e3f9b70340f2e642de286cda01183b6e5b4 /app
parent35dddcfc0dc2ded193a6b503f9ff4a5a3cd68439 (diff)
downloaddispatch-tracker-c49d9e0d69685d022fa6ffaa04f91bbe46f67551.tar.gz
dispatch-tracker-c49d9e0d69685d022fa6ffaa04f91bbe46f67551.tar.xz
Fully dockerized environment
Diffstat (limited to 'app')
-rw-r--r--app/config-compose.yml76
-rw-r--r--app/uwsgi.ini11
2 files changed, 82 insertions, 5 deletions
diff --git a/app/config-compose.yml b/app/config-compose.yml
new file mode 100644
index 0000000..ddbf18b
--- /dev/null
+++ b/app/config-compose.yml
@@ -0,0 +1,76 @@
+---
+# Postgres Example
+db_default:
+ ENGINE: django.db.backends.postgresql
+ NAME: dispatch
+ USER: postgres
+ PASSWORD:
+ HOST: postgres
+ PORT: 5432
+# MySQL Example
+# db_default:
+# ENGINE: django.db.backends.mysql
+# NAME: dispatch_test
+# USER: dispatch
+# PASSWORD: ahB2lee5
+# HOST: 127.0.0.1
+# PORT: 3306
+# Sqlite example. Full path is recommended
+# db_default:
+# ENGINE: django.db.backends.sqlite3
+# NAME: /home/mitch/scm/dispatch-tracker/app/db.sqlite3
+
+allowed_hosts:
+ - localhost
+ - 127.0.0.1
+ - 172.21.23.2
+
+static_root: '/static'
+
+debug: True
+
+# CHANGE THIS BEFORE USING IN PRODUCTION
+SECRET_KEY: 'h$r_bwlp@#h#y#%&qhw-n=gb2%wva1d_h65+o94u&!a#%iv&lo'
+
+# These people will be emailed if debug = false
+admins:
+ - 'bob@example.com'
+
+application_name: "Yo Momma's Dispatch Tracker"
+website_uri: 'http://172.21.23.2:8080'
+
+ACCOUNT_ACTIVATION_DAYS: 7
+
+# Email settings won't be loaded from this file if this is false
+SET_EMAIL: False
+# Email settings, edit for your needs
+EMAIL_HOST: smtp.example.com
+EMAIL_HOST_PASSWORD: p@$$w0rd9876543210
+EMAIL_HOST_USER: django@example.com
+EMAIL_PORT: 2525
+EMAIL_USE_TLS: True
+DEFAULT_FROM_EMAIL: webmaster@localhost
+
+TEMPLATE_VARS:
+ app_name: Subcontractor Invoicing System Demo
+ login_blurb: Here's an example blurb above the sign-in box. This can be changed according to your needs.
+ login_info: '
+ <p class="flow-text">
+ Welcome to a demo Subcontractor Invoicing system.
+ </p>
+ <p class="flow-text">
+ We can design a system that works specifically for your
+ use case.
+ </p>
+ <p class="flow-text">
+ <a href="https://www.stridet.com/contact">Please contact us</a>
+ if you would like more information. This version has been
+ specifically designed for use by a trucking company.
+ </p>
+ </p>
+ '
+
+
+
+
+
diff --git a/app/uwsgi.ini b/app/uwsgi.ini
index 829d185..2dae309 100644
--- a/app/uwsgi.ini
+++ b/app/uwsgi.ini
@@ -2,13 +2,14 @@
processes = 1
threads = 4
-env = CUSTOM_CONFIG=config.yml
+env = CUSTOM_CONFIG=config-compose.yml
-socket = 127.0.0.1:9200
+# use 127.0.0.1 instead of 0.0.0.0 if possible
+# this is for a containerized deployment
+socket = 0.0.0.0:9200
module = wsgi:application
-daemonize=uwsgi.log
-pidfile=uwsgi.pid
+# uid = uwsgi
-home = env
+# home = env