This branch is 33 commits behind Somnia/SomniaRoomsApp:main
Daniel-Garmig 2237bf3ca7
CI / Docker Lint (push) Successful in 30s
Publish_on_Tag / Build and Push (push) Failing after 15s
Fix lowercase actions.
2024-05-13 18:38:09 +02:00
2024-05-13 18:38:09 +02:00
2024-04-27 01:08:53 +02:00
2024-05-09 18:32:18 +02:00
2024-05-13 00:49:54 +02:00
2024-05-05 12:45:59 +02:00
2024-05-02 22:16:13 +02:00
2024-04-23 12:12:08 +02:00
2024-05-13 00:49:54 +02:00
2024-04-23 12:01:26 +02:00
2024-05-09 18:32:18 +02:00
2024-05-02 22:16:13 +02:00
2024-05-02 22:16:13 +02:00
2024-04-23 12:12:08 +02:00

SomniaRoomsApp

User app for SomniaRooms.

Docker Usage:

Dev

Build Image:

docker build -t somniarooms-app:dev --target final-dev .

Docker Run Image:

docker run -d -it --rm -v ${PWD}:/app -v /app/node_modules -p 3000:3000 --name somniarooms-app somniarooms-app:dev

Notas:

  • Usar -rm para eliminar el contenedor y sus volúmenes en stop.
  • Usar -d para modo detached.

Prod:

Build Image

docker build -t somniarooms-app:prod --target final-prod .

Docker Run

docker run -d -it -p 8080:80 --name somniarooms-app somniarooms-app:prod

Docker run with env vars:

docker run -d -it -p 8080:80 --name somniarooms-app -e SOMNIAROOMS_BACKEND_HOST=https://somniaapi.example.org/ -e SOMNIAROOMS_BACKEND_PORT=443 somniarooms-app:prod

Env Vars.

As this is distributed as a docker image ready to use, you must set some env variables to configure the app:

Var Default Value Description
SOMNIAROOMS_BACKEND_HOST https://somniaapi.example.org/ Host where uses can connect to the SomniaRoom API. API endpoint should be reachble for uses.
SOMNIAROOMS_BACKEND_PORT 443 Port to SomniarRooms API.

.env files

This project uses .env files to configure the app. As Vite only supports compile-time vars, we use some tricks to allow setting variables from container env variables.

.env

Contains default values. It is just an example configuration.

For development is recomended to create a .env.local file based on .env.

.env.production

Set varibles to certains placeholder, that are replace on container startup.

(We are using this solution: https://stackoverflow.com/a/77454537)

S
Description
Somnia Rooms - Fork for certain development
Readme
621 KiB
Languages
TypeScript 94.3%
JavaScript 2.4%
CSS 1.8%
Dockerfile 0.7%
Shell 0.4%
Other 0.4%