add docker files

This commit is contained in:
Lynne Megido 2019-09-18 13:13:15 +10:00
parent 7e9698eae5
commit 0202e3e0e7
3 changed files with 25 additions and 0 deletions

6
.dockerignore Normal file
View File

@ -0,0 +1,6 @@
__pycache__
config.json
planning.txt
README.md
.git
.vscode

4
Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM python:3.7-slim-buster
WORKDIR /fedibooks
COPY . fedibooks
RUN pip install -r requirements.txt

15
docker-compose.yml Normal file
View File

@ -0,0 +1,15 @@
version: '3'
services:
fedibooks:
build: .
links:
- db
ports:
5000:5000
db:
image: mariadb/server:10.4
environment:
MARIADB_ROOT_PASSWORD: root
MARIADB_DATABASE: fedibooks
MARIADB_USER: fedibooks
MARIADB_PASSWORD: fedibooks