From 87049f24a9d040851471c7301357df9b7c5e7a02 Mon Sep 17 00:00:00 2001 From: flavienbwk Date: Fri, 31 Jul 2020 16:44:17 +0200 Subject: [PATCH] Added docker-compose file example --- .gitignore | 5 ++++- docker-compose.yml | 13 +++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yml diff --git a/.gitignore b/.gitignore index 75aebf8..3494350 100644 --- a/.gitignore +++ b/.gitignore @@ -240,4 +240,7 @@ temp/ /config test.sh -test.py \ No newline at end of file +test.py + +# Docker volume +/dailynotes-volume diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..d929bd8 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,13 @@ +version: "3" + +services: + + server: + build: . + ports: + - 5000:5000 + volumes: + - ./dailynotes-volume:/app/config + environment: + API_SECRET_KEY: CHANGE_THIS_WITH_SECURE_PASSWORD + DB_ENCRYPTION_KEY: CHANGE_THIS_WITH_SECURE_PASSWORD \ No newline at end of file