Added example compose files for databases

This commit is contained in:
Filip Rojek 2024-04-02 21:13:00 +02:00
parent 4f52c37cb3
commit 6a1a6f6e68
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,12 @@
version: '3.1'
services:
db:
image: mariadb
restart: always
environment:
MARIADB_ROOT_PASSWORD: root
MARIADB_USER: nork
MARIADB_PASSWORD: nork
volumes:
./db-data:/var/lib/mysql

View File

@ -0,0 +1,20 @@
# Use root/example as user/password credentials
version: '3.1'
services:
mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: root
ME_CONFIG_MONGODB_URL: mongodb://root:example@mongo:27017/