chore: add root docker-compose without host ports; Traefik handles routing

This commit is contained in:
Ahmed Darrazi 2025-12-15 15:27:25 +01:00
parent f32e849632
commit b562ad2d49

18
docker-compose.yml Normal file
View File

@ -0,0 +1,18 @@
version: "3.8"
services:
app:
build:
context: .
dockerfile: Dockerfile
labels:
- "traefik.enable=true"
# Replace the Host rule with your actual domain (example below)
- "traefik.http.routers.lms.rule=Host(`lms.example.com`)"
- "traefik.http.routers.lms.entrypoints=web"
# Tell Traefik which internal port the service listens on
- "traefik.http.services.lms.loadbalancer.server.port=80"
environment:
- APP_ENV=production
volumes:
- ./:/var/www/html