Skip to content

Commit 9cd944b

Browse files
authored
Fix docker (#19)
* Update README.md * Update README.md * Update README.md * Update Dockerfile
1 parent 0e71edd commit 9cd944b

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

README.md

+9-5
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,17 @@ Supported platforms:
7272

7373
### Docker
7474

75-
To run HomeBlaze on port 9800 via Docker, create a `HomeBlaze` directory in your `C:` drive and run:
75+
To run HomeBlaze on port 9800 via Docker, create a `HomeBlaze` directory in your `C:` drive or your home directory and run:
7676

7777
```
78-
docker run -d --restart unless-stopped -v C:/HomeBlaze:/app/Config --name homeblaze -p 9800:80 ghcr.io/ricosuter/homeblaze:main
78+
// Windows
79+
docker run -d --restart unless-stopped -v C:/HomeBlaze:/app/Config --name homeblaze -p 9800:8080 ghcr.io/ricosuter/homeblaze:main
80+
81+
// Linux
82+
docker run -d --restart unless-stopped -v /home/myuser/homeblaze:/app/Config --name homeblaze -p 9800:8080 ghcr.io/ricosuter/homeblaze:main
7983
```
8084

81-
All configuration and state history files are now written to your `C:/HomeBlaze` directory.
85+
All configuration and state history files are now written to the configured directory.
8286

8387
To get the latest version, delete the docker instance and pull the latest version with:
8488

@@ -106,7 +110,7 @@ services:
106110
- Storage__Container=...
107111
- Storage__ConnectionString=...
108112
ports:
109-
- 9800:80
113+
- 9800:8080
110114
```
111115

112116
Initial run:
@@ -135,7 +139,7 @@ services:
135139
restart: always
136140
privileged: true
137141
ports:
138-
- 9800:80
142+
- 9800:8080
139143
```
140144

141145
**Support UDP**

src/HomeBlaze/Dockerfile

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Stage 1: Base image
22
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
33
WORKDIR /app
4-
EXPOSE 80
5-
EXPOSE 443
4+
EXPOSE 8080
65

76
# Stage 2: Build stage
87
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:9.0 AS build

0 commit comments

Comments
 (0)