File tree Expand file tree Collapse file tree 2 files changed +35
-2
lines changed Expand file tree Collapse file tree 2 files changed +35
-2
lines changed Original file line number Diff line number Diff line change 1+ postgresdata :
2+ image : postgres
3+ entrypoint : echo
4+ command : " Flask Postgres Data Container"
5+ postgres :
6+ image : postgres
7+ volumes_from :
8+ - postgresdata
9+ environment :
10+ POSTGRES_USER : flask
11+ POSTGRES_PASSWORD : flask
12+ flaskdata :
13+ image : gabeos/docker-flask-template
14+ entrypoint : echo
15+ command : " Flask Data Container"
16+ flask :
17+ image : gabeos/docker-flask-template
18+ volumes_from :
19+ - flaskdata
20+ links :
21+ - " postgres:db"
22+ environment :
23+ SERVER_NAME : example.com
24+ MAIL_SERVER : smtp.mail.com
25+ MAIL_PORT : 587
26+ MAIL_TLS : " true"
27+ MAIL_USER : admin
28+ MAIL_PASS : secret-password
29+ MAIL_SENDER : admin@example.com
30+ CREATE_FLASK_DB : " true"
31+ USER_MAIL : contact@example.com
32+ PROJECT_NAME : Flask Template
33+
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ def __get_blueprints_from_env():
6464 SECRET_KEY = os .environ ['FLASK_SECRET_KEY' ]
6565
6666 # LOGGING
67- LOGGER_NAME = "%s_log" % app
67+ LOGGER_NAME = "app_log"
6868 LOG_FILENAME = "/var/log/flask/flask.log"
6969 LOG_LEVEL = logging .INFO
7070 LOG_FORMAT = "%(asctime)s %(levelname)s\t : %(message)s" # used by logging.Formatter
@@ -79,7 +79,7 @@ def __get_blueprints_from_env():
7979 MAIL_DEBUG = False
8080 MAIL_USERNAME = os .getenv ("MAIL_USER" ,"admin" )
8181 MAIL_PASSWORD = os .getenv ("MAIL_PASS" ,"admin" )
82- DEFAULT_MAIL_SENDER = os .getenv ("MAIL_SENDER" ,"example@example.com" % )
82+ DEFAULT_MAIL_SENDER = os .getenv ("MAIL_SENDER" ,"example@example.com" )
8383
8484 # see example/ for reference
8585 # ex: BLUEPRINTS = ['blog'] # where app is a Blueprint instance
You can’t perform that action at this time.
0 commit comments