Use MariaDB, add env file
This commit is contained in:
parent
fc18781964
commit
9bf80dbf9e
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
.idea
|
||||
app/node_modules
|
||||
app/vendor
|
||||
app/.env
|
||||
|
5
app/.env.sample
Normal file
5
app/.env.sample
Normal file
@ -0,0 +1,5 @@
|
||||
DATABASE_HOST="localhost"
|
||||
DATABASE_USER="slovocast"
|
||||
DATABASE_PASSWORD="Password01"
|
||||
DATABASE_SCHEMA="slovocast"
|
||||
DATABASE_PORT=3306
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user