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
|
.idea
|
||||||
app/node_modules
|
app/node_modules
|
||||||
app/vendor
|
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:
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user