Readme notes
Signed-off-by: Carl Sargunar <carl@sargunar.com>
This commit is contained in:
parent
6f0b003faa
commit
085dcae736
@ -17,29 +17,45 @@ Project structure:
|
|||||||
```
|
```
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
build: app
|
build: app/umbracocms
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 8000:80
|
||||||
db:
|
restart: always
|
||||||
# mssql server image isn't available for arm64 architecture, so we use azure-sql instead
|
volumes:
|
||||||
image: mcr.microsoft.com/azure-sql-edge:1.0.4
|
- umbraco-media:/app/wwwroot/media
|
||||||
# If you really want to use MS SQL Server, uncomment the following line
|
- umbraco-logs:/app/umbraco/Logs
|
||||||
#image: mcr.microsoft.com/mssql/server
|
|
||||||
...
|
volumes:
|
||||||
|
umbraco-media:
|
||||||
|
umbraco-logs:
|
||||||
```
|
```
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
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
|
||||||
|
```
|
||||||
|
|
||||||
## Credentials
|
## Credentials
|
||||||
|
|
||||||
hello@umbraco.com
|
When the site is up and running, you can log in with the following credentials:
|
||||||
1234567890
|
|
||||||
|
|
||||||
|
- Login URL : http://localhost:8000/umbraco/
|
||||||
|
- Username : hello@umbraco.com
|
||||||
|
- Password : 1234567890
|
||||||
|
|
||||||
|
If you want to browse the front end of the site, you can use : http://localhost:8000
|
||||||
|
|
||||||
## crap below
|

|
||||||
|
|
||||||
docker build --tag=umbracocms .\umbracocms
|
Stop and remove the containers
|
||||||
|
|
||||||
docker run --name umbracocms -p 8000:80 -v umbraco-media:/app/wwwroot/media -v umbraco-logs:/app/umbraco/Logs -e -d umbracocms
|
```
|
||||||
|
$ docker compose down
|
||||||
docker run --name umbraco -p 8000:80 -d umbracodotnet
|
```
|
Loading…
Reference in New Issue
Block a user