mirror of
https://github.com/nestriness/nestri.git
synced 2025-12-11 08:15:38 +02:00
## Description We are attempting to hookup maitred to the API Maitred duties will be: - [ ] Hookup to the API - [ ] Wait for signal (from the API) to start Steam - [ ] Stop signal to stop the gaming session, clean up Steam... and maybe do the backup ## Summary by CodeRabbit - **New Features** - Introduced Docker-based deployment configurations for both the main and relay applications. - Added new API endpoints enabling real-time machine messaging and enhanced IoT operations. - Expanded database schema and actor types to support improved machine tracking. - **Improvements** - Enhanced real-time communication and relay management with streamlined room handling. - Upgraded dependencies, logging, and error handling for greater stability and performance. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: DatCaptainHorse <DatCaptainHorse@users.noreply.github.com> Co-authored-by: Kristian Ollikainen <14197772+DatCaptainHorse@users.noreply.github.com>
31 lines
741 B
Docker
31 lines
741 B
Docker
FROM docker.io/golang:1.24-alpine AS go-build
|
|
WORKDIR /builder
|
|
COPY packages/relay/ /builder/
|
|
RUN go build
|
|
|
|
FROM docker.io/golang:1.24-alpine
|
|
COPY --from=go-build /builder/relay /relay/relay
|
|
WORKDIR /relay
|
|
|
|
# TODO: Switch running layer to just alpine (doesn't need golang dev stack)
|
|
|
|
# ENV flags
|
|
ENV VERBOSE=false
|
|
ENV DEBUG=false
|
|
ENV ENDPOINT_PORT=8088
|
|
ENV MESH_PORT=8089
|
|
ENV WEBRTC_UDP_START=10000
|
|
ENV WEBRTC_UDP_END=20000
|
|
ENV STUN_SERVER="stun.l.google.com:19302"
|
|
ENV WEBRTC_UDP_MUX=8088
|
|
ENV WEBRTC_NAT_IPS=""
|
|
ENV AUTO_ADD_LOCAL_IP=true
|
|
ENV TLS_CERT=""
|
|
ENV TLS_KEY=""
|
|
|
|
EXPOSE $ENDPOINT_PORT
|
|
EXPOSE $MESH_PORT
|
|
EXPOSE $WEBRTC_UDP_START-$WEBRTC_UDP_END/udp
|
|
EXPOSE $WEBRTC_UDP_MUX/udp
|
|
|
|
ENTRYPOINT ["/relay/relay"] |