From b0aef46c99c8a7b90f70510e86bcee68d25a5ec4 Mon Sep 17 00:00:00 2001 From: Athou Date: Tue, 22 Mar 2022 15:41:27 +0100 Subject: [PATCH] add docker-compose config to start mysql and pgsql local databases --- .gitignore | 5 ++++- docker-compose.dev.yml | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 docker-compose.dev.yml diff --git a/.gitignore b/.gitignore index d57ed215..0fb007ab 100644 --- a/.gitignore +++ b/.gitignore @@ -1,10 +1,13 @@ -# config gile +# config file config.yml # build directory target target-ide +# database files +database + # log files log diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml new file mode 100644 index 00000000..d96e3d42 --- /dev/null +++ b/docker-compose.dev.yml @@ -0,0 +1,19 @@ +version: "3.1" + +services: + mysql: + image: mariadb + environment: + - MYSQL_ROOT_PASSWORD=root + - MYSQL_DATABASE=commafeed + ports: + - 3306:3306 + + postgresql: + image: postgres + environment: + POSTGRES_USER: root + POSTGRES_PASSWORD: root + POSTGRES_DB: commafeed + ports: + - 5432:5432