mirror of
https://github.com/filiprojek/nork.git
synced 2024-11-23 09:11:03 +01:00
Added example compose files for databases
This commit is contained in:
parent
4f52c37cb3
commit
6a1a6f6e68
12
src/skeletons/composes/mariadb.yaml
Normal file
12
src/skeletons/composes/mariadb.yaml
Normal 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
|
20
src/skeletons/composes/mongodb.yaml
Normal file
20
src/skeletons/composes/mongodb.yaml
Normal 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/
|
Loading…
Reference in New Issue
Block a user