Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
65 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FLASK_APP=application | ||
FLASK_ENV=dev | ||
FLASK_RUN_HOST=0.0.0.0 | ||
MAIL_DEBUG=true | ||
|
||
jwt_secret_key='XulhzbydxgvwRkPXnDeCoOw2VrE=' | ||
secret_key='H78Pg7CalkDlf4A81YKDlKcax8c=' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
FROM python:3.5-alpine | ||
|
||
RUN apk update && \ | ||
apk add --no-cache \ | ||
gcc \ | ||
musl-dev \ | ||
npm \ | ||
postgresql-dev \ | ||
python3-dev | ||
|
||
WORKDIR /app | ||
|
||
COPY requirements.txt requirements.txt | ||
|
||
RUN pip install --upgrade pip && \ | ||
pip install --requirement requirements.txt | ||
|
||
COPY package.json package.json | ||
|
||
RUN npm install --global npm && \ | ||
npm update && \ | ||
npm install && \ | ||
npm run dev | ||
|
||
COPY . /app | ||
|
||
ENTRYPOINT [ "./entrypoint.sh" ] | ||
|
||
CMD [ "run" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
version: '3.7' | ||
|
||
services: | ||
db: | ||
image: postgres:12.0-alpine | ||
environment: | ||
POSTGRES_PASSWORD: password | ||
POSTGRES_DB: dev | ||
volumes: | ||
- postgres_data:/var/lib/postgresql/data/ | ||
|
||
app: | ||
build: . | ||
depends_on: | ||
- db | ||
environment: | ||
- db_url=postgres://postgres:password@db:5432/dev | ||
ports: | ||
- 5000:5000 | ||
volumes: | ||
- .:/app | ||
|
||
volumes: | ||
postgres_data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
CMD=${1:-run} | ||
flask db upgrade | ||
flask "${CMD}" |