adding some docker shit

graphs-n-shit
lza_menace 4 years ago
parent b6aac85f48
commit 95504d8bd4

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

1
.gitignore vendored

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

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

@ -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

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

Loading…
Cancel
Save