From 001dbadf9e3b63be0d35cef869e2106de6b8940d Mon Sep 17 00:00:00 2001 From: Lynne Date: Tue, 17 Sep 2019 20:00:38 +1000 Subject: [PATCH] started work on docker stuff --- .dockerignore | 6 ++++++ Dockerfile | 4 ++++ docker-compose.yml | 15 +++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile create mode 100644 docker-compose.yml 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