feat: 添加 Nginx 反向代理並統一容器名稱為 star-erp
All checks were successful
Koori-ERP-Deploy-System / deploy-demo (push) Successful in 1m38s
Koori-ERP-Deploy-System / deploy-production (push) Has been skipped

This commit is contained in:
2026-01-15 17:35:09 +08:00
parent b685c818a4
commit 4b2ccd36b8
2 changed files with 38 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ services:
extra_hosts:
- 'host.docker.internal:host-gateway'
ports:
- '${APP_PORT:-80}:80'
- '${APP_PORT:-8080}:80'
- '${VITE_PORT:-5173}:${VITE_PORT:-5173}'
environment:
WWWUSER: '${WWWUSER}'
@@ -71,6 +71,17 @@ services:
- ping
retries: 3
timeout: 5s
proxy:
image: 'nginx:alpine'
container_name: star-erp-proxy
ports:
- '80:80'
volumes:
- './nginx/demo-proxy.conf:/etc/nginx/conf.d/default.conf:ro'
networks:
- sail
depends_on:
- laravel.test
# mailpit:
# image: 'axllent/mailpit:latest'
# ports: