Skip to content

Commit 5e5967d

Browse files
committed
added example fig.yml
1 parent e9d98c9 commit 5e5967d

File tree

2 files changed

+35
-2
lines changed

2 files changed

+35
-2
lines changed

‎fig.yml‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+

‎flask/app/settings.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)