2022-06-01 20:37:02 +00:00
# Umbraco CMS Docker compose file
2022-06-02 20:51:37 +00:00
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 site also uses a template starter kit which is built on the [Portfolio demo ](https://github.com/prjseal/Portfolio-Starter-Kit-fo-Umbraco ) from Paul Seal.
2022-06-01 20:37:02 +00:00
2022-06-02 00:06:07 +00:00
Project structure:
```
.
├── app
2022-06-02 20:51:37 +00:00
│ ├── db
2022-06-02 00:06:07 +00:00
│ ├── umbracocms
| │ ├── Dockerfile
| | └── ...
│ └── umbraco.sln
└── compose.yaml
```
[_compose.yaml_ ](compose.yaml )
```
services:
web:
2022-06-02 00:13:42 +00:00
build: app/umbracocms
2022-06-02 00:06:07 +00:00
ports:
2022-06-02 00:13:42 +00:00
- 8000:80
restart: always
volumes:
- umbraco-media:/app/wwwroot/media
- umbraco-logs:/app/umbraco/Logs
volumes:
umbraco-media:
umbraco-logs:
2022-06-02 00:06:07 +00:00
```
2022-06-01 21:25:47 +00:00
2022-06-02 00:13:42 +00:00
This compose file defines the umbraco application. In this instance it's configured in the simplest way possible, using an SQLite database. This is not a recommended configuration for production use, but is good for demos.
2022-06-01 21:25:47 +00:00
2022-06-02 00:13:42 +00:00
The site uses 2 volumes, one for media, where images are stored, and one for Logs, so logs can be viewed even when the container is stopped.
The application is configured to run on port 8000, so when the container is running you can run the site on http://localhost:8000.
## Deploy with docker compose
```
$ docker compose up -d
```
2022-06-01 23:32:35 +00:00
2022-06-02 00:13:42 +00:00
## Credentials
2022-06-01 23:32:35 +00:00
2022-06-02 00:13:42 +00:00
When the site is up and running, you can log in with the following credentials:
2022-06-01 23:32:35 +00:00
2022-06-02 00:13:42 +00:00
- Login URL : http://localhost:8000/umbraco/
- Username : hello@umbraco.com
- Password : 1234567890
2022-06-01 23:32:35 +00:00
2022-06-02 00:13:42 +00:00
If you want to browse the front end of the site, you can use : http://localhost:8000
2022-06-01 21:25:47 +00:00
2022-06-02 00:13:42 +00:00

2022-06-01 21:25:47 +00:00
2022-06-02 00:13:42 +00:00
Stop and remove the containers
2022-06-01 21:25:47 +00:00
2022-06-02 00:13:42 +00:00
```
$ docker compose down
```