Docker Compose File
Signed-off-by: Carl Sargunar <carl@sargunar.com>
This commit is contained in:
parent
768a8f10bf
commit
6f0b003faa
38
umbraco-cms/app/umbracocms/appsettings.Release.json
Normal file
38
umbraco-cms/app/umbracocms/appsettings.Release.json
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
{
|
||||||
|
"$schema": "./appsettings-schema.json",
|
||||||
|
"Serilog": {
|
||||||
|
"MinimumLevel": {
|
||||||
|
"Default": "Information"
|
||||||
|
},
|
||||||
|
"WriteTo": [
|
||||||
|
{
|
||||||
|
"Name": "Async",
|
||||||
|
"Args": {
|
||||||
|
"configure": [
|
||||||
|
{
|
||||||
|
"Name": "Console"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"Umbraco": {
|
||||||
|
"CMS": {
|
||||||
|
"Content": {
|
||||||
|
"MacroErrors": "Throw"
|
||||||
|
},
|
||||||
|
"Hosting": {
|
||||||
|
"Debug": true
|
||||||
|
},
|
||||||
|
"RuntimeMinification": {
|
||||||
|
"UseInMemoryCache": true,
|
||||||
|
"CacheBuster": "Timestamp"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ConnectionStrings": {
|
||||||
|
"umbracoDbDSN": "Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True",
|
||||||
|
"umbracoDbDSN_ProviderName": "Microsoft.Data.SQLite"
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,13 @@
|
|||||||
|
services:
|
||||||
|
web:
|
||||||
|
build: app/umbracocms
|
||||||
|
ports:
|
||||||
|
- 8000:80
|
||||||
|
restart: always
|
||||||
|
volumes:
|
||||||
|
- umbraco-media:/app/wwwroot/media
|
||||||
|
- umbraco-logs:/app/umbraco/Logs
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
umbraco-media:
|
||||||
|
umbraco-logs:
|
@ -2,9 +2,31 @@
|
|||||||
|
|
||||||
This sample project will start up the [Umbraco CMS](https://github.com/umbraco/Umbraco-CMS/) in a Docker container, with an attached database container running SQL Server.
|
This sample project will start up the [Umbraco CMS](https://github.com/umbraco/Umbraco-CMS/) in a Docker container, with an attached database container running SQL Server.
|
||||||
|
|
||||||
## Project Structure
|
Project structure:
|
||||||
|
```
|
||||||
|
.
|
||||||
|
├── app
|
||||||
|
│ ├── umbracocms
|
||||||
|
| │ ├── Dockerfile
|
||||||
|
| | └── ...
|
||||||
|
│ └── umbraco.sln
|
||||||
|
└── compose.yaml
|
||||||
|
```
|
||||||
|
|
||||||
|
[_compose.yaml_](compose.yaml)
|
||||||
|
```
|
||||||
|
services:
|
||||||
|
web:
|
||||||
|
build: app
|
||||||
|
ports:
|
||||||
|
- 80:80
|
||||||
|
db:
|
||||||
|
# mssql server image isn't available for arm64 architecture, so we use azure-sql instead
|
||||||
|
image: mcr.microsoft.com/azure-sql-edge:1.0.4
|
||||||
|
# If you really want to use MS SQL Server, uncomment the following line
|
||||||
|
#image: mcr.microsoft.com/mssql/server
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Credentials
|
## Credentials
|
||||||
|
Loading…
Reference in New Issue
Block a user