🏗️」 wip: nginx and modsec working

This commit is contained in:
2025-07-16 13:46:39 +02:00
parent 86c740b284
commit a92100b7c0
8 changed files with 141 additions and 24 deletions

View File

@ -1,20 +1,49 @@
services:
front:
image: owasp/modsecurity-crs:nginx-alpine
ports:
- 443:443
# environment:
# - euuuh
user-api:
container_name: transcendence-front
build:
dockerfile: docker/user-api/Dockerfile
dockerfile: docker/front/Dockerfile
context: ..
ports:
- 8443:443
environment:
SERVER_NAME: localhost
depends_on:
user-api:
condition: service_started
auth-api:
condition: service_started
networks:
- front
user-api:
container_name: transcendence-api-user
build:
dockerfile: docker/api-base/Dockerfile
context: ..
tags:
- api-base
networks:
- front
- back
environment:
- API_TARGET=user
auth-api:
container_name: transcendence-api-auth
build:
dockerfile: docker/api-base/Dockerfile
context: ..
networks:
- transcendence
ports:
- 3000:3000
- front
- back
environment:
- API_TARGET=auth
networks:
transcendence:
front:
external: false
name: transcendence
name: front-backend
back:
external: false
name: trans-backend