File tree Expand file tree Collapse file tree 2 files changed +69
-0
lines changed Expand file tree Collapse file tree 2 files changed +69
-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+
8+ ## Usage
9+
10+ ```
11+ $ docker-compose up -d
12+ ```
13+
14+ ```
15+ $ docker-compose down
16+ ```
17+
18+ ## Config
19+
20+ ### PostgreSQL
21+
22+ ` .env ` :
23+ ```
24+ database.default.hostname = localhost
25+ database.default.database = test
26+ database.default.username = postgres
27+ database.default.password = postgres
28+ database.default.DBDriver = Postgre
29+ database.default.port = 5432
30+ ```
31+
32+ ### SQL Server
33+
34+ ```
35+ $ docker-compose exec mssql bash
36+ mssql@aaa8e9411491:/$ /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "1Secure*Password1" -Q "CREATE DATABASE test"
37+ ```
38+
39+ ` .env ` :
40+ ```
41+ database.default.hostname = localhost
42+ database.default.database = test
43+ database.default.username = sa
44+ database.default.password = 1Secure*Password1
45+ database.default.DBDriver = SQLSRV
46+ database.default.port = 1433
47+ ```
48+
49+ See https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-docker?view=sql-server-ver15&pivots=cs1-bash
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
You can’t perform that action at this time.
0 commit comments