initial commit

This commit is contained in:
2025-10-12 18:41:02 +02:00
commit 75347648bc
6 changed files with 107 additions and 0 deletions

27
docker-compose.yml Normal file
View File

@ -0,0 +1,27 @@
version: "3.9"
services:
nginx:
container_name: mynginx
build:
context: . # mappen där Dockerfile finns
dockerfile: Dockerfile # din Dockerfile (från frågan)
ports:
- "80:80" # exponerar HTTP till HAProxy
restart: unless-stopped
networks:
- web
- infra-net
healthcheck:
test: ["CMD-SHELL", "wget -q -O- http://localhost/health || exit 1"]
interval: 10s
timeout: 3s
retries: 5
networks:
web:
external: true # använder redan befintligt nät
name: web
infra-net:
external: true # använder redan befintligt nät
name: infra-net