Added Docker + docker-compose configuration
This commit is contained in:
parent
65b0a25429
commit
abb76836a1
2
.dockerignore
Normal file
2
.dockerignore
Normal file
|
@ -0,0 +1,2 @@
|
|||
.git
|
||||
.idea
|
12
Dockerfile
Normal file
12
Dockerfile
Normal 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
10
docker-compose.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
version: '2'
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
restart: always
|
||||
ports:
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- .:/var/www/site
|
||||
working_dir: /var/www/site
|
11
docs/config_core/core_docker_sqlite.ini
Normal file
11
docs/config_core/core_docker_sqlite.ini
Normal 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
|
|
@ -1,6 +1,6 @@
|
|||
aiohttp
|
||||
click>=6.0
|
||||
SQLAlchemy>=1.2.0
|
||||
SQLAlchemy>=1.2.0b1
|
||||
sqlalchemy_utils>=0.32.00
|
||||
pymysql
|
||||
passlib
|
||||
|
|
Loading…
Reference in New Issue
Block a user