Update docker-compose.yml

This commit is contained in:
ahmido 2025-12-15 14:55:43 +00:00
parent 34c544f696
commit 6cee2e355e

View File

@ -6,16 +6,9 @@ services:
context: . context: .
dockerfile: Dockerfile dockerfile: Dockerfile
image: websites-lms:latest image: websites-lms:latest
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: environment:
APP_ENV: production APP_ENV: production
APP_DEBUG: "false" APP_DEBUG: "true"
volumes: volumes:
- ./:/var/www/html - ./:/var/www/html
restart: unless-stopped restart: unless-stopped