flask site buildout #2
@ -3,6 +3,8 @@ from config import Config
|
||||
from flask_sqlalchemy import SQLAlchemy
|
||||
from flask_migrate import Migrate
|
||||
from flask_login import LoginManager
|
||||
import logging
|
||||
from logging.handlers import SMTPHandler
|
||||
|
||||
app = Flask(__name__)
|
||||
app.config.from_object(Config)
|
||||
|
@ -8,4 +8,11 @@ class Config:
|
||||
#SQLALCHEMY_DATABASE_URI = 'sqlite:///' + os.path.join(basedir, 'zapp.db')
|
||||
SQLALCHEMY_DATABASE_URI = 'mariadb+mariadbconnector://flasku:' + os.environ.get('MYSQL_PASSWORD') + '@db:3306/flask'
|
||||
|
||||
MAIL_SERVER = 'pmb'
|
||||
MAIL_PORT = 25
|
||||
MAIL_USE_TLS = False
|
||||
MAIL_USERNAME = ''
|
||||
MAIL_PASSWORD = ''
|
||||
ADMINS = [os.environ.get('ADMIN_EMAIL')]
|
||||
|
||||
|
||||
|
@ -37,6 +37,7 @@ services:
|
||||
- MYSQL_PASSWORD=${DOTENV_MYSQL_FLASK_PASSWORD}
|
||||
- TOKEN_I=${DOTENV_TOKEN_I}
|
||||
- TOKEN_C=${DOTENV_TOKEN_C}
|
||||
- ADMIN_EMAIL=${ADMIN_EMAIL}
|
||||
#ports:
|
||||
# - 8000:8000
|
||||
expose:
|
||||
|
@ -4,5 +4,9 @@ server {
|
||||
location / {
|
||||
proxy_pass http://backend:8000;
|
||||
}
|
||||
location /gutty{
|
||||
proxy_pass http://gitea:3000;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -4,5 +4,9 @@ server {
|
||||
location / {
|
||||
proxy_pass http://backend:8000;
|
||||
}
|
||||
location /gutty {
|
||||
proxy_pass http://gitea:3000;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user