Skip to content

Commit e585d73

Browse files
committed
Updated readme
1 parent 3472998 commit e585d73

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

Readme.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ This blog also offers an RSS feed ([RSS 2.0 specification](https://validator.w3.
190190

191191
## Host Web in Docker containers
192192

193-
### https http port and CA certificate
193+
### Server configuration
194194

195195
To deploy with docker, you need to modify the variables in the docker-compose.yml file.
196196
```yml
@@ -208,27 +208,26 @@ volumes:
208208
After modifying the settings, you can use the docker command `docker compose up -d`
209209
Deploy the web.
210210
If you don't use HTTPS, you can remove the related options.
211+
SQL Server
211212

212-
### Sql Server
213-
214-
If you use Sql Server, you can add a sql server in `docker-compose.yml`.
213+
If you use SQL Server, you can add an instance in `docker-compose.yml`.
215214
``` yml
216215
sql:
217216
image: mcr.microsoft.com/mssql/server:2022-latest
218217
container_name: sql
219218
expose:
220-
- 1433 #you can use other ports
219+
- 1433
221220
volumes:
222221
- sqlvolume:/var/opt/mssql
223222
environment:
224223
- ACCEPT_EULA=Y
225-
- MSSQL_SA_PASSWORD= #your sql password
224+
- MSSQL_SA_PASSWORD= # Your sql password
226225
networks:
227226
- web_net
228227
volumes: # creates a shared data volume named sqlvolume if you use sqlserver
229228
sqlvolume:
230229
```
231-
Note the ConnectionString format of Sql Server needs to be consistent:
230+
Note the ConnectionString format of SQL Server needs to be consistent:
232231
```
233-
"ConnectionString": "Data Source=sql;Initial Catalog =master;User ID =sa;Password=<YOURPASSWORD>;TrustServerCertificate=True;MultiSubnetFailover=True"
232+
"ConnectionString": "Data Source=sql;Initial Catalog=master;User ID=sa;Password=<YOURPASSWORD>;TrustServerCertificate=True;MultiSubnetFailover=True"
234233
```

0 commit comments

Comments
 (0)