Skip to content
Snippets Groups Projects
Commit 71b79995 authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

Use MySQL instead of postgres and add compose file

parent a108ad8b
Branches
Tags
No related merge requests found
{
"SQLALCHEMY_DATABASE_URI": "postgresql://compendium_v2:password@localhost/compendium_v2"
"SQLALCHEMY_DATABASE_URI": "mysql+pymysql://compendium:compendium321@localhost/compendium"
}
services:
mysql:
restart: unless-stopped
container_name: mysql-compendium
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "no"
MYSQL_DATABASE: compendium
MYSQL_PASSWORD: compendium321
MYSQL_ROOT_PASSWORD: compendium321
MYSQL_USER: compendium
volumes:
- ./build/mysql_logs:/var/log/
- ./build/mysql_data:/var/lib/mysql/
image: mysql:8
command: mysqld --general-log=1 --general-log-file=/var/log/mysql.log
ports:
- 3306:3306
......@@ -13,11 +13,10 @@ setup(
'jsonschema',
'flask',
'flask-cors',
'flask',
'Flask-Migrate',
'psycopg2-binary',
'SQLAlchemy',
'Flask-SQLAlchemy'
'alembic',
'PyMySQL',
'cryptography',
],
include_package_data=True,
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment