Added Procfile
This commit is contained in:
parent
7a7186c9ee
commit
8bdc94be04
4 changed files with 6 additions and 1 deletions
|
|
@ -1,5 +1,4 @@
|
|||
from pathlib import Path
|
||||
import os
|
||||
from django.contrib.messages import constants
|
||||
from dotenv import dotenv_values
|
||||
|
||||
|
|
|
|||
1
Procfile
Normal file
1
Procfile
Normal file
|
|
@ -0,0 +1 @@
|
|||
web: gunicorn django_project.wsgi
|
||||
|
|
@ -16,6 +16,9 @@ services:
|
|||
DJANGO_SETTINGS_MODULE: "CollegiateHouseWars.settings.dev"
|
||||
depends_on:
|
||||
- mysqldb
|
||||
command: >
|
||||
bash -c "python manage.py migrate
|
||||
&& python manage.py runserver 0.0.0.0:8000"
|
||||
mysqldb:
|
||||
restart: unless-stopped
|
||||
image: mysql:5.7
|
||||
|
|
@ -27,6 +30,8 @@ services:
|
|||
- housewars
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: "${DATABASE_PASSWORD}"
|
||||
MYSQL_USER: "c4pat"
|
||||
MYSQL_PASSWORD: "asdf"
|
||||
MYSQL_DATABASE: dev
|
||||
volumes:
|
||||
housewars-mysql:
|
||||
|
|
|
|||
BIN
requirements.txt
BIN
requirements.txt
Binary file not shown.
Reference in a new issue