adding some docker shit

This commit is contained in:
lza_menace 2020-08-08 00:15:08 -07:00
parent b6aac85f48
commit 95504d8bd4
5 changed files with 29 additions and 0 deletions

6
.dockerignore Normal file
View File

@ -0,0 +1,6 @@
data
flask_session
bin
.venv
.git
.idea

1
.gitignore vendored
View File

@ -7,3 +7,4 @@ __pycache__
*sql
flask_session
config.py
docker-compose.*.yaml

7
Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM python:slim
WORKDIR /srv
COPY . .
RUN pip3 install -r requirements.txt

14
docker-compose.yaml Normal file
View File

@ -0,0 +1,14 @@
version: '3'
services:
wownero-explorer:
build:
context: .
command: gunicorn --bind 0.0.0.0:4000 "suchwow.app:app"
labels:
- "traefik.http.routers.http.rule=Host(`localhost`)"
- "traefik.http.routers.http.entrypoints=http"
environment:
FLASK_SECRETS: config.py
FLASK_APP: suchwow/app.py
ports:
- 4000:4000

View File

@ -2,3 +2,4 @@ requests
flask
flask-session
peewee
gunicorn