Files
Aut.ManagementFaculty/docker-compose.yml
T
2026-09-29 11:09:14 +03:30

31 lines
959 B
YAML

services:
web:
# Local full build (slow). CI uses Dockerfile.prebuilt instead.
build:
context: .
dockerfile: Dockerfile
image: aut-management-faculty:latest
container_name: aut-management-faculty
restart: unless-stopped
environment:
- NODE_ENV=production
- PORT=3000
- HOSTNAME=0.0.0.0
- NEXT_PUBLIC_SITE_URL=${NEXT_PUBLIC_SITE_URL:-https://edu.mstaut.ir}
# Prefer host.docker.internal when Postgres is on the same machine as Docker.
- DATABASE_URL=${DATABASE_URL:-postgresql://managment_web:hD3H9seTqX1GJMu1mDJBGDYr@host.docker.internal:5432/ManagmentWebSite_Db}
extra_hosts:
- "host.docker.internal:host-gateway"
# Nginx Proxy Manager: edu.mstaut.ir → http://aut-management-faculty:3000
expose:
- "3000"
networks:
- shared_web_network
ports:
- "3000:3000"
networks:
shared_web_network:
external: true
name: shared_web_network