From 9bf80dbf9e1031c3e070e4d5c8b9e9221b33c043 Mon Sep 17 00:00:00 2001 From: Dave Smith-Hayes Date: Mon, 17 Jun 2024 21:30:28 -0400 Subject: [PATCH] Use MariaDB, add env file --- .gitignore | 1 + app/.env.sample | 5 +++++ docker-compose.yml | 13 +++++++------ 3 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 app/.env.sample diff --git a/.gitignore b/.gitignore index d969596..9d8f37d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .idea app/node_modules app/vendor +app/.env diff --git a/app/.env.sample b/app/.env.sample new file mode 100644 index 0000000..0de096a --- /dev/null +++ b/app/.env.sample @@ -0,0 +1,5 @@ +DATABASE_HOST="localhost" +DATABASE_USER="slovocast" +DATABASE_PASSWORD="Password01" +DATABASE_SCHEMA="slovocast" +DATABASE_PORT=3306 diff --git a/docker-compose.yml b/docker-compose.yml index 5cbc0d3..1577a9f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,14 +2,15 @@ version: '3.9' services: database: - image: postgres:latest + image: mariadb:latest environment: - POSTGRES_PASSWORD: password - POSTGRES_USER: slovocast - POSTGRES_DB: slovocast + MARIADB_DATABASE: "slovocast" + MARIADB_USER: "slovocast" + MARIADB_PASSWORD: "Password01" + MARIADB_ROOT_PASSWORD: "Password01" ports: - - "5432:5432" + - "3306:3306" volumes: - - slovocast_db:/var/lib/postgresql/data/ + - slovocast_db:/var/lib/mysql/data/ volumes: slovocast_db: