File tree Expand file tree Collapse file tree 2 files changed +97
-0
lines changed Expand file tree Collapse file tree 2 files changed +97
-0
lines changed Original file line number Diff line number Diff line change 1+ # Docker for development
2+
3+ ## Included
4+
5+ - PostgreSQL 13
6+ - SQL Server 2019
7+ - MySQL 5.7
8+
9+ ## Usage
10+
11+ ```
12+ $ docker-compose up -d
13+ ```
14+
15+ ```
16+ $ docker-compose down
17+ ```
18+
19+ ## Config
20+
21+ ### PostgreSQL
22+
23+ #### .env
24+
25+ ```
26+ database.default.hostname = localhost
27+ database.default.database = test
28+ database.default.username = postgres
29+ database.default.password = postgres
30+ database.default.DBDriver = Postgre
31+ database.default.port = 5432
32+ ```
33+
34+ ### SQL Server
35+
36+ #### Create Database
37+
38+ ```
39+ $ docker-compose exec mssql bash
40+ mssql@aaa8e9411491:/$ /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "1Secure*Password1" -Q "CREATE DATABASE test"
41+ ```
42+
43+ #### .env
44+
45+ ```
46+ database.default.hostname = localhost
47+ database.default.database = test
48+ database.default.username = sa
49+ database.default.password = 1Secure*Password1
50+ database.default.DBDriver = SQLSRV
51+ database.default.port = 1433
52+ ```
53+
54+ See https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-docker?view=sql-server-ver15&pivots=cs1-bash
55+
56+ ### MySQL
57+
58+ #### .env
59+
60+ ```
61+ database.default.hostname = localhost
62+ database.default.database = test
63+ database.default.username = mysql
64+ database.default.password = mysql
65+ database.default.DBDriver = MySQLi
66+ database.default.port = 3306
67+ ```
Original file line number Diff line number Diff line change 1+ version : ' 3'
2+
3+ services :
4+ postgres :
5+ image : postgres:13-alpine
6+ ports :
7+ - " 5432:5432"
8+ environment :
9+ POSTGRES_DB : test
10+ POSTGRES_USER : postgres
11+ POSTGRES_PASSWORD : postgres
12+
13+ mssql :
14+ image : mcr.microsoft.com/mssql/server:2019-latest
15+ ports :
16+ - " 1433:1433"
17+ environment :
18+ SA_PASSWORD : 1Secure*Password1
19+ ACCEPT_EULA : Y
20+ MSSQL_PID : Developer
21+
22+ mysql :
23+ image : mysql:5.7
24+ ports :
25+ - " 3306:3306"
26+ environment :
27+ MYSQL_ROOT_PASSWORD : mysql
28+ MYSQL_DATABASE : test
29+ MYSQL_USER : mysql
30+ MYSQL_PASSWORD : mysql
You can’t perform that action at this time.
0 commit comments