1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-11-25 08:38:59 +00:00

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