started to make a docker service of it

This commit is contained in:
Jürgen Key 2020-07-08 06:57:34 +02:00
parent a69f12ec07
commit 42fdc46304
3 changed files with 31 additions and 0 deletions

5
src/apache-flask.wsgi Normal file
View File

@ -0,0 +1,5 @@
#! /usr/bin/python
from app import app as application
import sys
sys.path.append("/var/www/apache-flask")

22
src/docker-compose.yml Normal file
View File

@ -0,0 +1,22 @@
version: '2'
services:
wirewiz:
build: .
# ports:
# - "80:80"
restart: unless-stopped
env_file:
- environment.env
labels:
- "traefik.enable=true"
- "traefik.http.routers.gitlabsvgbadges.rule=Host(`wirewiz.docker.lab`)"
- "traefik.http.services.gitlabsvgbadges.loadbalancer.server.port=80"
- "traefik.docker.network=traefik_proxy"
networks:
- traefik_proxy
networks:
traefik_proxy:
external:
name: traefik_proxy

4
src/run.py Normal file
View File

@ -0,0 +1,4 @@
#! /usr/bin/env python
from app import app
if __name__ == '__main__':
app.run(host='0.0.0.0')