File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ This blog also offers an RSS feed ([RSS 2.0 specification](https://validator.w3.
190
190
191
191
## Host Web in Docker containers
192
192
193
- ### https http port and CA certificate
193
+ ### Server configuration
194
194
195
195
To deploy with docker, you need to modify the variables in the docker-compose.yml file.
196
196
``` yml
@@ -208,27 +208,26 @@ volumes:
208
208
After modifying the settings, you can use the docker command ` docker compose up -d`
209
209
Deploy the web.
210
210
If you don't use HTTPS, you can remove the related options.
211
+ SQL Server
211
212
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`.
215
214
` ` ` yml
216
215
sql:
217
216
image: mcr.microsoft.com/mssql/server:2022-latest
218
217
container_name: sql
219
218
expose:
220
- - 1433 #you can use other ports
219
+ - 1433
221
220
volumes:
222
221
- sqlvolume:/var/opt/mssql
223
222
environment:
224
223
- ACCEPT_EULA=Y
225
- - MSSQL_SA_PASSWORD= #your sql password
224
+ - MSSQL_SA_PASSWORD= # Your sql password
226
225
networks:
227
226
- web_net
228
227
volumes: # creates a shared data volume named sqlvolume if you use sqlserver
229
228
sqlvolume:
230
229
` ` `
231
- Note the ConnectionString format of Sql Server needs to be consistent :
230
+ Note the ConnectionString format of SQL Server needs to be consistent :
232
231
` ` `
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"
234
233
` ` `
You can’t perform that action at this time.
0 commit comments