started to make a docker service of it
This commit is contained in:
parent
a69f12ec07
commit
42fdc46304
5
src/apache-flask.wsgi
Normal file
5
src/apache-flask.wsgi
Normal 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
22
src/docker-compose.yml
Normal 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
4
src/run.py
Normal file
@ -0,0 +1,4 @@
|
||||
#! /usr/bin/env python
|
||||
from app import app
|
||||
if __name__ == '__main__':
|
||||
app.run(host='0.0.0.0')
|
||||
Loading…
x
Reference in New Issue
Block a user