diff --git a/Dockerfile b/Dockerfile index 734fe8c..a0cad0d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -149,7 +149,7 @@ sleep 5\n\ \n\ log "Starting noVNC web interface..."\n\ cd /opt/noVNC\n\ -python3 -m websockify --web . 6080 localhost:5901 &\n\ +python3 -m websockify --web --max-connections=2 . 6080 localhost:5901 &\n\ NOVNC_PID=$!\n\ \n\ sleep 3\n\ diff --git a/Makefile b/Makefile index ffc494f..6bc2308 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ # By: bszilas +#+ +:+ +#+ # # +#+#+#+#+#+ +#+ # # Created: 2024/09/08 16:30:33 by victor #+# #+# # -# Updated: 2025/05/31 15:42:54 by victor ### ########.fr # +# Updated: 2025/06/02 12:04:19 by victor ### ########.fr # # # # **************************************************************************** # @@ -99,6 +99,12 @@ $(LIBS): $(OBJDIR): mkdir -p $(OBJDIR) $(OBJDIR)/$(SRCDIR) $(OBJDIR)/$(RENDERDIR) $(OBJDIR)/$(IODIR) $(OBJDIR)/$(UTILDIR) $(OBJDIR)/$(SCENEDIR) +docker-build: all + docker build -t miniRT . + +docker-run: docker-build + docker run -d -p 6080:6080 -p 5901:5901 miniRT:latest + clean: rm -rf $(OBJDIR) make clean -C libft diff --git a/keycloak/compose.yaml b/keycloak/compose.yaml new file mode 100644 index 0000000..a4fd157 --- /dev/null +++ b/keycloak/compose.yaml @@ -0,0 +1,29 @@ +services: + postgres_key: + + container_name: postgres_key + + image: postgres:alpine + + environment: + - POSTGRES_USER=keycloak_user + - POSTGRES_PASSWORD=keycloak_password + - POSTGRES_DB=keycloak_db + + networks: + keycloak-shared-network: + ports: + - "15432:15432" + volumes: + - keycloak_data:/var/lib/postgresql/data + - ./postgres/logs:/var/logs/postgres + + +volumes: + keycloak_data: + +networks: + jobited-net: + driver: bridge + keycloak-shared-network: + external: true