mirror of
https://github.com/Lynnesbian/FediBooks/
synced 2024-11-25 08:38:59 +00:00
add docker files
This commit is contained in:
parent
7e9698eae5
commit
0202e3e0e7
3 changed files with 25 additions and 0 deletions
6
.dockerignore
Normal file
6
.dockerignore
Normal file
|
@ -0,0 +1,6 @@
|
|||
__pycache__
|
||||
config.json
|
||||
planning.txt
|
||||
README.md
|
||||
.git
|
||||
.vscode
|
4
Dockerfile
Normal file
4
Dockerfile
Normal 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
15
docker-compose.yml
Normal 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
|
Loading…
Reference in a new issue