Skip to content

Commit 6ffeb03

Browse files
Update api docker config
1 parent 3be0995 commit 6ffeb03

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

API/OCM.Net/OCM.API.Web/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUN dotnet publish "API/OCM.Net/OCM.API.Web/OCM.API.Web.csproj" -c Release -o /a
1515
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
1616
WORKDIR /app
1717

18-
ENV ASPNETCORE_URLS="http://+:8080" \
18+
ENV ASPNETCORE_URLS="http://+:80" \
1919
ASPNETCORE_ENVIRONMENT=Production \
2020
DOTNET_RUNNING_IN_CONTAINER=true
2121

@@ -37,10 +37,10 @@ RUN groupadd -r appuser && useradd -r -g appuser appuser \
3737
USER appuser
3838

3939
# Expose HTTP (adjust if you enable HTTPS)
40-
EXPOSE 8080
40+
EXPOSE 80
4141

4242
# Health check - queries the system status endpoint
4343
HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 \
44-
CMD curl -f http://localhost:8080/v3/system/status?key=statuscake || exit 1
44+
CMD curl -f http://localhost:80/v3/system/status?key=statuscake || exit 1
4545

4646
ENTRYPOINT ["dotnet", "OCM.API.Web.dll"]

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ Developers can use our [API](https://openchargemap.org/site/develop/) to access
1313

1414
### Basic build/dev prerequisites
1515

16-
- dotnet 6.x sdk (windows/linux)
16+
- dotnet 10.x sdk (windows/linux)
1717
- SQL Server Express
18-
- MongoDB 5.x
18+
- MongoDB
1919

2020
### Local Dev Setup
2121
- Restore SQL database clone https://github.com/openchargemap/ocm-docs/tree/master/Database/Clone
@@ -29,6 +29,9 @@ Developers can use our [API](https://openchargemap.org/site/develop/) to access
2929
- Configure web.config
3030

3131
To run an API mirror, see the OCM.API.Worker readme.
32+
### Updates
33+
Run refresh-docker.bat to rebuild latest docker images and push the to the deployment registry
34+
on the target docker host, `cd docker-config`, `docker compose pull`, `docker compose up -d`
3235

3336
### Contributing
3437

0 commit comments

Comments
 (0)