From f633660307c9c701ab97d0120511472566fb5fda Mon Sep 17 00:00:00 2001 From: Luke Else Date: Mon, 1 Jan 2024 15:04:58 +0000 Subject: [PATCH] Created docker compose file with sqlite3 database container --- .gitignore | 4 ++++ docker-compose.yml | 13 +++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 docker-compose.yml diff --git a/.gitignore b/.gitignore index fa13355..5b891d5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,10 @@ # Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,python,flask,web # Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,python,flask,web + +### SQLite 3 Database ### +data/ + ### Flask ### instance/* !instance/.gitignore diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..9bb453f --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,13 @@ +version: '3.8' + +services: + sqlite3: + container_name: sqlite3 + image: nouchka/sqlite3:latest + stdin_open: true + tty: true + volumes: + - ./data:/root/db + ports: + - '9000:9000' + restart: unless-stopped \ No newline at end of file