add more db inits
This commit is contained in:
@@ -1,16 +1,41 @@
|
||||
version: "3.4"
|
||||
|
||||
services:
|
||||
db:
|
||||
image: postgres
|
||||
maria-db:
|
||||
image: mariadb
|
||||
volumes:
|
||||
- "./db:/docker-entrypoint-initdb.d"
|
||||
- "./db/mariadb:/docker-entrypoint-initdb.d"
|
||||
networks:
|
||||
- default
|
||||
ports:
|
||||
- "5433:5432"
|
||||
- "8084:3306"
|
||||
environment:
|
||||
#- "MARIADB_USER=root"
|
||||
- "MARIADB_ROOT_PASSWORD=admin_pass"
|
||||
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
||||
|
||||
mysql-db:
|
||||
image: mysql
|
||||
volumes:
|
||||
- "./db/mysql:/docker-entrypoint-initdb.d"
|
||||
networks:
|
||||
- default
|
||||
ports:
|
||||
- "8086:3306"
|
||||
environment:
|
||||
#- "MYSQL_USER=root"
|
||||
- "MYSQL_ROOT_PASSWORD=admin_pass"
|
||||
command: --default-authentication-plugin=mysql_native_password
|
||||
|
||||
postgres-db:
|
||||
image: postgres
|
||||
volumes:
|
||||
- "./db/postgres:/docker-entrypoint-initdb.d"
|
||||
networks:
|
||||
- default
|
||||
ports:
|
||||
- "8087:5432"
|
||||
environment:
|
||||
- "POSTGRES_DB=demo"
|
||||
- "POSTGRES_USER=admin"
|
||||
- "POSTGRES_PASSWORD=admin_pass"
|
||||
|
||||
@@ -20,6 +45,7 @@ services:
|
||||
networks:
|
||||
- default
|
||||
ports:
|
||||
- "8081:8080"
|
||||
- "8083:8080"
|
||||
depends_on:
|
||||
- db
|
||||
- mysql-db
|
||||
- postgres-db
|
||||
|
||||
Reference in New Issue
Block a user