Docker configuration #11

Open
notisset wants to merge 1 commits from notisset:docker-config into to-aiohttp
5 changed files with 36 additions and 1 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
.git
.idea

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM alpine:latest
MAINTAINER Notisset <notisset@autistici.org>
RUN apk update && apk add musl-dev zlib-dev jpeg-dev gcc python3 python3-dev
COPY requirements.txt .
RUN pip3 install -r requirements.txt
COPY . /var/www/site
EXPOSE 8080
ENTRYPOINT python3 /var/www/site/web.py

10
docker-compose.yml Normal file
View File

@ -0,0 +1,10 @@
version: '2'
services:
app:
build: .
restart: always
ports:
- "8080:8080"
volumes:
- .:/var/www/site
working_dir: /var/www/site

View File

@ -0,0 +1,11 @@
[GENERAL]
Address = 0.0.0.0
Port = 8080
[DATABASE]
Engine = sqlite
Path = pos.db
[PRINTER]
Host = 192.168.1.100
Post = 9100

View File

@ -1,6 +1,6 @@
aiohttp aiohttp
click>=6.0 click>=6.0
SQLAlchemy>=1.2.0 SQLAlchemy>=1.2.0b1
sqlalchemy_utils>=0.32.00 sqlalchemy_utils>=0.32.00
pymysql pymysql
passlib passlib