Use MariaDB, add env file

This commit is contained in:
Dave Smith-Hayes 2024-06-17 21:30:28 -04:00
parent fc18781964
commit 9bf80dbf9e
3 changed files with 13 additions and 6 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.idea .idea
app/node_modules app/node_modules
app/vendor app/vendor
app/.env

5
app/.env.sample Normal file
View File

@ -0,0 +1,5 @@
DATABASE_HOST="localhost"
DATABASE_USER="slovocast"
DATABASE_PASSWORD="Password01"
DATABASE_SCHEMA="slovocast"
DATABASE_PORT=3306

View File

@ -2,14 +2,15 @@ version: '3.9'
services: services:
database: database:
image: postgres:latest image: mariadb:latest
environment: environment:
POSTGRES_PASSWORD: password MARIADB_DATABASE: "slovocast"
POSTGRES_USER: slovocast MARIADB_USER: "slovocast"
POSTGRES_DB: slovocast MARIADB_PASSWORD: "Password01"
MARIADB_ROOT_PASSWORD: "Password01"
ports: ports:
- "5432:5432" - "3306:3306"
volumes: volumes:
- slovocast_db:/var/lib/postgresql/data/ - slovocast_db:/var/lib/mysql/data/
volumes: volumes:
slovocast_db: slovocast_db: