Skip to content

Commit ede5593

Browse files
eshanrnhgitbook-bot
authored andcommitted
GITBOOK-63: Fixed list formatting
1 parent 39da2fc commit ede5593

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

15/umbraco-cms/fundamentals/setup/install/running-umbraco-on-docker-locally.md

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
---
2-
description: "Running Umbraco on docker locally using docker compose"
1+
---
2+
description: Running Umbraco on docker locally using docker compose
33
---
44

55
# Running Umbraco in Docker using Docker Compose
@@ -32,32 +32,32 @@ cd MyDockerProject
3232

3333
2. Create a new Umbraco project with Docker support:
3434

35-
```bash
35+
```csharp
3636
dotnet new umbraco -n MyDockerProject --add-docker
3737
```
3838

3939
3. Add Docker Compose files:
4040

41-
```bash
41+
```csharp
4242
dotnet new umbraco-compose -P "MyDockerProject"
4343
```
4444

4545
The `-P` flag is required to specify the correct paths in the docker-compose file. The project is now ready to run with Docker Compose.
4646

4747
The folder structure should now look like this:
4848

49-
MyDockerProject/
50-
├── Database/
51-
├── Dockerfile
52-
| |── healthcheck.sh
53-
├── setup.sql
54-
├── startup.sh
55-
├── MyDockerProject/
56-
├── Your project files
57-
├── Dockerfile
58-
| |── .dockerignore
59-
├── .env
60-
├── docker-compose.yml
49+
* MyDockerProject/
50+
* Database/
51+
* Dockerfile
52+
* healthcheck.sh
53+
* setup.sql
54+
* startup.sh
55+
* MyDockerProject/
56+
* Your project files
57+
* Dockerfile
58+
* .dockerignore
59+
* .env
60+
* docker-compose.yml
6161

6262
The project now includes docker files for both Umbraco and the SQL server database.
6363

@@ -82,12 +82,13 @@ cd MyDockerSqliteProject
8282

8383
2. Create a new Umbraco project:
8484

85-
```bash
85+
```csharp
8686
dotnet new umbraco -n MyDockerSqliteProject
8787
```
8888

8989
3. Add a Dockerfile
9090

91+
{% code overflow="wrap" fullWidth="false" %}
9192
```bash
9293
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
9394
WORKDIR /app
@@ -110,6 +111,7 @@ WORKDIR /app
110111
COPY --from=publish /app/publish .
111112
ENTRYPOINT ["dotnet", "MyDockerSqliteProject.dll"]
112113
```
114+
{% endcode %}
113115

114116
{% hint style="info" %}
115117
To speed up the build process, add a `.dockerignore` file to exclude unnecessary folders like `.git`, `bin`, and `obj`.

0 commit comments

Comments
 (0)