diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..43fbbbb --- /dev/null +++ b/.dockerignore @@ -0,0 +1,6 @@ +__pycache__ +config.json +planning.txt +README.md +.git +.vscode diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1373c18 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM python:3.7-slim-buster +WORKDIR /fedibooks +COPY . fedibooks +RUN pip install -r requirements.txt diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..4617246 --- /dev/null +++ b/docker-compose.yml @@ -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