You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
39 lines
1.1 KiB
# docker-compose برای داشبورد حسینیه (SPA پشت nginx).
|
|
#
|
|
# منبع واحد env در پروداکشن: فایل .env.production (با env_file خوانده میشود).
|
|
# همهٔ متغیرها از همان یک جا میآیند و در runtime به کانتینر تزریق میشوند.
|
|
|
|
services:
|
|
web:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
image: hosseinieh-dashboard:latest
|
|
container_name: hosseinieh-dashboard
|
|
restart: unless-stopped
|
|
|
|
# ← تنها منبع متغیرهای محیط در پروداکشن
|
|
env_file:
|
|
- .env.production
|
|
|
|
# ← پورت 5010 میزبان به 80 کانتینر (nginx)
|
|
ports:
|
|
- "5010:80"
|
|
|
|
# دسترسی به بکاندی که روی خود میزبان اجرا میشود (host.docker.internal)
|
|
# extra_hosts:
|
|
# - "host.docker.internal:host-gateway"
|
|
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-qO-", "http://localhost/healthz"]
|
|
interval: 30s
|
|
timeout: 3s
|
|
retries: 3
|
|
start_period: 10s
|
|
networks:
|
|
- najm_najm
|
|
|
|
networks:
|
|
najm_najm:
|
|
external: true
|
|
|