Add : Front end

This commit is contained in:
Guillaume-Sanchez
2026-06-29 22:09:46 +02:00
parent 137384f93c
commit 05c6f9107d
3 changed files with 18 additions and 6 deletions
+12
View File
@@ -0,0 +1,12 @@
# Dockerfile.nginx (Frontend)
FROM nginx:alpine
# Copie vos fichiers statiques (index.html, etc.)
COPY ./app /usr/share/nginx/html
# Force les droits Linux corrects pour Nginx (évite le 403 Forbidden)
RUN chown -R nginx:nginx /usr/share/nginx/html && \
chmod -R 755 /usr/share/nginx/html
# Nginx écoute par défaut sur le port 80 dans le conteneur
EXPOSE 80
-2
View File
@@ -1,2 +0,0 @@
import main
print("Import réussi :", main.app)
+6 -4
View File
@@ -1,6 +1,8 @@
services: services:
backend: backend:
build: . build:
context: .
dockerfile: Dockerfile
container_name: cyberusgate_backend container_name: cyberusgate_backend
environment: environment:
- PYTHONUNBUFFERED=1 - PYTHONUNBUFFERED=1
@@ -8,12 +10,12 @@ services:
- cyberusgate-network - cyberusgate-network
frontend: frontend:
image: nginx:alpine build:
context: .
dockerfile: Dockerfile.nginx
container_name: cyberusgate_frontend container_name: cyberusgate_frontend
ports: ports:
- "8888:80" - "8888:80"
volumes:
- ./app:/usr/share/nginx/html:ro
networks: networks:
- cyberusgate-network - cyberusgate-network